#include "Common.h" static void Frame1100_Thread2108 (const VApp &app) { // 13.460 ms } //============================================================================== static void Frame1100_Thread11408_Pass0 (const VApp &app) { // 0.436 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(12ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(26ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1024u, 1024u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 0.451 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(122ull)), /*query*/ 2u ); // 0.458 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(122ull)), /*firstQuery*/ 2u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(3630ull)), /*dstOffset*/ 16ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 0.466 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(122ull)), /*firstQuery*/ 2u, /*queryCount*/ 1u ); // 0.474 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(5ull)) ); // 0.497 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(28ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(45ull)) = descriptorSets[1u]; } // 0.509 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(6ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(28ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(28ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(45ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(45ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(45ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(45ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(45ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(45ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(45ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(45ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(45ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(45ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 0.518 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 1024.000000f; viewports[0u].height = 1024.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 0.525 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 1024u, 1024u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 0.532 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 0.540 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(28ull)), app.GetResource(DescriptorSetID(45ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4704512u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 0.548 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 0.555 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 0.561 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 0.571 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(66ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(89ull)) = descriptorSets[1u]; } // 0.579 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(66ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(66ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(89ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(89ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(89ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(89ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(89ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(89ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(89ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(89ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(89ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(89ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 0.587 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(66ull)), app.GetResource(DescriptorSetID(89ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4704512u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 0.594 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 0.600 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 0.607 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 0.615 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(92ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(103ull)) = descriptorSets[1u]; } // 0.623 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(14ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(92ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(92ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(103ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(103ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(103ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(103ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(103ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(103ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(103ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(103ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(103ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(103ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 0.630 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(92ull)), app.GetResource(DescriptorSetID(103ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4704512u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 0.637 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 0.644 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 0.650 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 0.664 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(17ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(37ull)) = descriptorSets[1u]; } // 0.673 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(24ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(17ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(17ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(37ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(37ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(37ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(37ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(37ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(37ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(37ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(37ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(37ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(37ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 0.680 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(17ull)), app.GetResource(DescriptorSetID(37ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4705792u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 0.687 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 0.694 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 0.700 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 0.709 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(55ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(122ull)) = descriptorSets[1u]; } // 0.716 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(16ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(55ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(55ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(122ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(122ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(122ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(122ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(122ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(122ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(122ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(122ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(122ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(122ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 0.724 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(55ull)), app.GetResource(DescriptorSetID(122ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4705792u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 0.731 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 0.737 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 0.744 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 0.752 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(135ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(136ull)) = descriptorSets[1u]; } // 0.759 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(38ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(135ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(135ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(136ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(136ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(136ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(136ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(136ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(136ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(136ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(136ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(136ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(136ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 0.767 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(135ull)), app.GetResource(DescriptorSetID(136ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4705792u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 0.774 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 0.780 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 0.787 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 0.794 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(154ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(160ull)) = descriptorSets[1u]; } // 0.803 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(47ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(154ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(154ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(160ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(160ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(160ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(160ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(160ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(160ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(160ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(160ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(160ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(160ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 0.811 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(154ull)), app.GetResource(DescriptorSetID(160ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4706816u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 0.818 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 0.825 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 0.833 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 0.845 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(180ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(197ull)) = descriptorSets[1u]; } // 0.856 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(43ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(180ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(180ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(197ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(197ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(197ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(197ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(197ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(197ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(197ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(197ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(197ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(197ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 0.865 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(180ull)), app.GetResource(DescriptorSetID(197ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4706816u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 0.874 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 0.880 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 0.887 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 0.897 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(204ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(216ull)) = descriptorSets[1u]; } // 0.907 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(50ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(204ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(204ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(216ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(216ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(216ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(216ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(216ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(216ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(216ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(216ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(216ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(216ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 0.917 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(204ull)), app.GetResource(DescriptorSetID(216ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4706816u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 0.924 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 0.932 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 0.939 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 0.951 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(223ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(230ull)) = descriptorSets[1u]; } // 0.960 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(701ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(223ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(223ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(230ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(230ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(230ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(230ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(230ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(230ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(230ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(230ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(230ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(230ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 0.971 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(223ull)), app.GetResource(DescriptorSetID(230ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4707840u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 0.979 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 0.985 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 0.993 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 1.006 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(245ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(260ull)) = descriptorSets[1u]; } // 1.017 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(55ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(245ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(245ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(260ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(260ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(260ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(260ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(260ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(260ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(260ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(260ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(260ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(260ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 1.028 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(245ull)), app.GetResource(DescriptorSetID(260ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4708864u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 1.035 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 1.043 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 1.050 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 1.061 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(280ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(281ull)) = descriptorSets[1u]; } // 1.070 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(59ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(280ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(280ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(281ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(281ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(281ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(281ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(281ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(281ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(281ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(281ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(281ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(281ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 1.081 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(280ull)), app.GetResource(DescriptorSetID(281ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4708864u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 1.090 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 1.100 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 1.107 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 1.116 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(293ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(301ull)) = descriptorSets[1u]; } // 1.127 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(60ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(293ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(293ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(301ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(301ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(301ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(301ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(301ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(301ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(301ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(301ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(301ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(301ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 1.138 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(293ull)), app.GetResource(DescriptorSetID(301ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4708864u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 1.146 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 1.157 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 1.167 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 1.219 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(330ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(341ull)) = descriptorSets[1u]; } // 1.266 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(62ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(330ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(330ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(341ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(341ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(341ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(341ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(341ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(341ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(341ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(341ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(341ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(341ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 1.309 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(330ull)), app.GetResource(DescriptorSetID(341ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4709888u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 1.361 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 1.415 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 1.443 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 1.478 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(355ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(360ull)) = descriptorSets[1u]; } // 1.510 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(64ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(355ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(355ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(360ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(360ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(360ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(360ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(360ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(360ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(360ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(360ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(360ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(360ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 1.568 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(355ull)), app.GetResource(DescriptorSetID(360ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4709888u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 1.615 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 1.659 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 1.696 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 1.747 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(382ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(384ull)) = descriptorSets[1u]; } // 1.794 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(69ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(382ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(382ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(384ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(384ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(384ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(384ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(384ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(384ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(384ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(384ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(384ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(384ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 1.819 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(382ull)), app.GetResource(DescriptorSetID(384ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4710912u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 1.855 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 1.887 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 1.920 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 1.947 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(84ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(111ull)) = descriptorSets[1u]; } // 1.957 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(72ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(84ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(84ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(111ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(111ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(111ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(111ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(111ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(111ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(111ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(111ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(111ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(111ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 1.966 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(84ull)), app.GetResource(DescriptorSetID(111ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4710912u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 1.974 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 1.982 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 1.990 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 1.999 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(60ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(0ull)) = descriptorSets[1u]; } // 2.009 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(76ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(60ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(60ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(0ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(0ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(0ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(0ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(0ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(0ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(0ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(0ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(0ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(0ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.019 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(60ull)), app.GetResource(DescriptorSetID(0ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4710912u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.027 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.036 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.044 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.055 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(146ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(98ull)) = descriptorSets[1u]; } // 2.066 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(175ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(146ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(146ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(98ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(98ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(98ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(98ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(98ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(98ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(98ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(98ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(98ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(98ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.075 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(146ull)), app.GetResource(DescriptorSetID(98ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4711936u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.084 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.092 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.100 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.109 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(389ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(396ull)) = descriptorSets[1u]; } // 2.118 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(702ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(389ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(389ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(396ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(396ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(396ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(396ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(396ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(396ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(396ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(396ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(396ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(396ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.129 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(389ull)), app.GetResource(DescriptorSetID(396ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4711936u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.137 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.146 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.154 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.163 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(53ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(402ull)) = descriptorSets[1u]; } // 2.173 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(88ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(53ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(53ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(402ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(402ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(402ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(402ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(402ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(402ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(402ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(402ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(402ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(402ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.183 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(53ull)), app.GetResource(DescriptorSetID(402ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4711936u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.192 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.200 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.207 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.217 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(217ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(406ull)) = descriptorSets[1u]; } // 2.227 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(643ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(217ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(217ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(406ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(406ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(406ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(406ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(406ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(406ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(406ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(406ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(406ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(406ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.237 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(217ull)), app.GetResource(DescriptorSetID(406ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4711936u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.244 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.253 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.260 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.270 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(343ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(251ull)) = descriptorSets[1u]; } // 2.280 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(703ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(343ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(343ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(251ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(251ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(251ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(251ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(251ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(251ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(251ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(251ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(251ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(251ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.291 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(343ull)), app.GetResource(DescriptorSetID(251ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4711936u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.309 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.332 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.341 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.353 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(167ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(408ull)) = descriptorSets[1u]; } // 2.364 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(469ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(167ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(167ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(408ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(408ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(408ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(408ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(408ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(408ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(408ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(408ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(408ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(408ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.373 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(167ull)), app.GetResource(DescriptorSetID(408ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4711936u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.380 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.387 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.394 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.402 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(291ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(210ull)) = descriptorSets[1u]; } // 2.410 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(707ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(291ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(291ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(210ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(210ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(210ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(210ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(210ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(210ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(210ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(210ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(210ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(210ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.418 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(291ull)), app.GetResource(DescriptorSetID(210ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4711936u, 4705536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.425 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.432 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.439 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.449 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(134ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(410ull)) = descriptorSets[1u]; } // 2.458 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(709ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(134ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(134ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(410ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(410ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(410ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(410ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(410ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(410ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(410ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(410ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(410ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(410ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.466 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(134ull)), app.GetResource(DescriptorSetID(410ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4712960u, 4713984u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.472 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.479 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.486 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.507 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(235ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(420ull)) = descriptorSets[1u]; } // 2.520 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(711ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(235ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(235ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(420ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(420ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(420ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(420ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(420ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(456ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(420ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(420ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(420ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(420ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(420ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.529 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(235ull)), app.GetResource(DescriptorSetID(420ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4714240u, 4713984u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.536 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.543 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.550 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.559 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(369ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(388ull)) = descriptorSets[1u]; } // 2.567 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(712ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(369ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(369ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(388ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(388ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(388ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(388ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(388ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(456ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(388ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(388ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(388ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(388ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(388ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.575 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(369ull)), app.GetResource(DescriptorSetID(388ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4714240u, 4713984u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.582 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.589 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.595 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.604 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(202ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(438ull)) = descriptorSets[1u]; } // 2.612 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(689ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(202ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(202ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(438ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(438ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(438ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(438ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(438ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(438ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(438ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(438ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(438ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(438ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.620 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(202ull)), app.GetResource(DescriptorSetID(438ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4715264u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.627 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.634 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.640 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.649 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(329ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(441ull)) = descriptorSets[1u]; } // 2.658 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(578ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(329ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(329ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(441ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(441ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(441ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(441ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(441ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(441ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(441ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(441ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(441ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(441ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.666 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(329ull)), app.GetResource(DescriptorSetID(441ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4715264u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.673 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.680 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.687 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.696 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(456ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(362ull)) = descriptorSets[1u]; } // 2.704 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(294ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(456ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(456ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(362ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(362ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(362ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(362ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(362ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(362ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(362ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(362ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(362ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(362ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.712 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(456ull)), app.GetResource(DescriptorSetID(362ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4716544u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.720 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.727 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.733 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 4u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.742 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(273ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(467ull)) = descriptorSets[1u]; } // 2.750 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(81ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(273ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(273ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(467ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(467ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(467ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(467ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(467ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(467ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(467ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(467ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(467ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(467ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.758 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(273ull)), app.GetResource(DescriptorSetID(467ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4717568u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.764 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.771 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.778 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.787 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(471ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(484ull)) = descriptorSets[1u]; } // 2.795 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(84ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(471ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(471ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(484ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(484ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(484ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(484ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(484ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(484ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(484ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(484ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(484ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(484ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.804 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(471ull)), app.GetResource(DescriptorSetID(484ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4717568u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.811 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.818 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.825 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.842 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(492ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(497ull)) = descriptorSets[1u]; } // 2.851 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(92ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(492ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(492ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(497ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(497ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(497ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(497ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(497ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(497ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(497ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(497ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(497ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(497ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.859 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(492ull)), app.GetResource(DescriptorSetID(497ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4718592u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.866 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.873 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.880 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.889 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(504ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(510ull)) = descriptorSets[1u]; } // 2.897 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(95ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(504ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(504ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(510ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(510ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(510ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(510ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(510ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(510ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(510ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(510ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(510ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(510ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.904 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(504ull)), app.GetResource(DescriptorSetID(510ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4718592u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.911 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.918 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.925 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.933 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(515ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(516ull)) = descriptorSets[1u]; } // 2.940 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(101ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(515ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(515ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(516ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(516ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(516ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(516ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(516ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(516ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(516ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(516ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(516ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(516ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.948 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(515ull)), app.GetResource(DescriptorSetID(516ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4718592u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.954 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 2.961 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 2.968 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 2.976 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(524ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(529ull)) = descriptorSets[1u]; } // 2.983 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(103ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(524ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(524ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(529ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(529ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(529ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(529ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(529ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(529ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(529ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(529ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(529ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(529ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 2.991 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(524ull)), app.GetResource(DescriptorSetID(529ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4719616u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 2.997 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.004 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.010 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.018 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(548ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(560ull)) = descriptorSets[1u]; } // 3.026 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(108ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(548ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(548ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(560ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(560ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(560ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(560ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(560ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(560ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(560ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(560ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(560ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(560ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.034 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(548ull)), app.GetResource(DescriptorSetID(560ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4719616u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.040 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.047 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.053 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.061 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(562ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(578ull)) = descriptorSets[1u]; } // 3.069 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(114ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(562ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(562ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(578ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(578ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(578ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(578ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(578ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(578ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(578ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(578ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(578ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(578ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.077 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(562ull)), app.GetResource(DescriptorSetID(578ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4720640u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.084 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.091 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.099 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.106 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(585ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(587ull)) = descriptorSets[1u]; } // 3.115 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(116ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(585ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(585ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(587ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(587ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(587ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(587ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(587ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(587ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(587ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(587ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(587ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(587ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.123 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(585ull)), app.GetResource(DescriptorSetID(587ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4720640u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.129 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.136 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.143 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.151 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(589ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(602ull)) = descriptorSets[1u]; } // 3.158 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(117ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(589ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(589ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(602ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(602ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(602ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(602ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(602ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(602ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(602ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(602ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(602ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(602ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.166 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(589ull)), app.GetResource(DescriptorSetID(602ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4720640u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.173 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.179 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.186 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.194 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(250ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(614ull)) = descriptorSets[1u]; } // 3.202 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(121ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(250ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(250ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(614ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(614ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(614ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(614ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(614ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(614ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(614ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(614ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(614ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(614ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.211 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(250ull)), app.GetResource(DescriptorSetID(614ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4721664u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.217 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.224 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.231 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.239 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(622ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(624ull)) = descriptorSets[1u]; } // 3.246 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(124ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(622ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(622ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(624ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(624ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(624ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(624ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(624ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(624ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(624ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(624ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(624ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(624ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.254 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(622ull)), app.GetResource(DescriptorSetID(624ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4721664u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.261 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.268 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.274 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.293 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(636ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(648ull)) = descriptorSets[1u]; } // 3.303 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(128ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(636ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(636ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(648ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(648ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(648ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(648ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(648ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(648ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(648ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(648ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(648ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(648ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.312 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(636ull)), app.GetResource(DescriptorSetID(648ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4722688u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.319 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.327 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.335 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.345 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(655ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(666ull)) = descriptorSets[1u]; } // 3.354 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(131ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(655ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(655ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(666ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(666ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(666ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(666ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(666ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(666ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(666ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(666ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(666ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(666ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.366 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(655ull)), app.GetResource(DescriptorSetID(666ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4722688u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.373 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.380 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.389 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.398 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(675ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(683ull)) = descriptorSets[1u]; } // 3.406 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(133ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(675ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(675ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(683ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(683ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(683ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(683ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(683ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(683ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(683ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(683ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(683ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(683ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.414 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(675ull)), app.GetResource(DescriptorSetID(683ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4723712u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.421 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.428 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.434 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.443 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(686ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(700ull)) = descriptorSets[1u]; } // 3.451 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(136ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(686ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(686ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(700ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(700ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(700ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(700ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(700ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(700ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(700ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(700ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(700ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(700ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.459 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(686ull)), app.GetResource(DescriptorSetID(700ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4723712u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.466 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.474 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.480 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.489 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(18ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(106ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(701ull)) = descriptorSets[1u]; } // 3.497 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(137ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(106ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(106ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(701ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(701ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(701ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(701ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(701ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(701ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(701ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(701ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(701ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(701ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.506 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(106ull)), app.GetResource(DescriptorSetID(701ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4723712u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.513 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.520 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.528 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.546 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(708ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(717ull)) = descriptorSets[1u]; } // 3.556 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(714ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(708ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(708ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(717ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(717ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(717ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(717ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(717ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(717ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(717ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(717ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(717ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(717ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.564 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(708ull)), app.GetResource(DescriptorSetID(717ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4724736u, 4716288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.573 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.580 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.587 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.603 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(725ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(729ull)) = descriptorSets[1u]; } // 3.613 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(651ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(725ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(725ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(729ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(729ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(729ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(729ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(729ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(729ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(729ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(729ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(729ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(729ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.621 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(725ull)), app.GetResource(DescriptorSetID(729ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4725760u, 4726784u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.629 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.635 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.642 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.652 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(737ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(502ull)) = descriptorSets[1u]; } // 3.661 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(347ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(737ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(737ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(502ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(502ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(502ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(502ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(502ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(456ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(502ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(502ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(502ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(502ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(502ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.671 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(737ull)), app.GetResource(DescriptorSetID(502ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4727040u, 4726784u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.679 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.686 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.693 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 42u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.703 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(507ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(749ull)) = descriptorSets[1u]; } // 3.712 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(793ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(507ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(507ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(749ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(749ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(749ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(749ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(749ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(456ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(749ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(749ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(749ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(749ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(749ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.720 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(507ull)), app.GetResource(DescriptorSetID(749ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4728064u, 4726784u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.735 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.744 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.752 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 43u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.764 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(74ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(521ull)) = descriptorSets[1u]; } // 3.774 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(718ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(74ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(74ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(521ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(521ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(521ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(521ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(521ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(456ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(521ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(521ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(521ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(521ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(521ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.783 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(74ull)), app.GetResource(DescriptorSetID(521ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4729088u, 4726784u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.790 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.797 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.804 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.821 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(753ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(754ull)) = descriptorSets[1u]; } // 3.830 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(720ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(753ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(753ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(754ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(754ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(754ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(754ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(754ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(754ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(754ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(754ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(754ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(754ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.838 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(753ull)), app.GetResource(DescriptorSetID(754ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4730112u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.844 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.851 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.857 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.866 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(558ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(762ull)) = descriptorSets[1u]; } // 3.874 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(51ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(558ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(558ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(762ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(762ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(762ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(762ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(762ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(762ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(762ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(762ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(762ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(762ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.882 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(558ull)), app.GetResource(DescriptorSetID(762ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4731392u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.888 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.895 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.901 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.909 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(768ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(296ull)) = descriptorSets[1u]; } // 3.917 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(85ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(768ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(768ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(296ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(296ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(296ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(296ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(296ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(296ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(296ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(296ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(296ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(296ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.924 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(768ull)), app.GetResource(DescriptorSetID(296ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4731392u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.931 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.938 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.945 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.953 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(770ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(780ull)) = descriptorSets[1u]; } // 3.961 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(94ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(770ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(770ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(780ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(780ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(780ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(780ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(780ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(780ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(780ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(780ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(780ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(780ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 3.969 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(770ull)), app.GetResource(DescriptorSetID(780ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4731392u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 3.976 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 3.983 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 3.989 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 3.997 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(120ull)), /*query*/ 2u ); // 4.005 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(120ull)), /*firstQuery*/ 2u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4786ull)), /*dstOffset*/ 16ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 4.013 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(120ull)), /*firstQuery*/ 2u, /*queryCount*/ 1u ); // 4.022 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass1 (const VApp &app) { // 4.068 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(12ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(28ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1024u, 1024u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 4.082 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(303ull)), /*query*/ 1u ); // 4.089 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(303ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4763ull)), /*dstOffset*/ 8ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 4.096 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(303ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u ); // 4.108 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(782ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(786ull)) = descriptorSets[1u]; } // 4.116 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(6ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(782ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(782ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(786ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(786ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(786ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(786ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(786ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(786ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(786ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(786ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(786ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(786ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.124 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(782ull)), app.GetResource(DescriptorSetID(786ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4732416u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.131 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.138 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.145 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.153 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(787ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(618ull)) = descriptorSets[1u]; } // 4.160 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(787ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(787ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(618ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(618ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(618ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(618ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(618ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(618ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(618ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(618ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(618ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(618ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.168 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(787ull)), app.GetResource(DescriptorSetID(618ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4732416u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.175 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.182 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.188 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.196 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(631ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(791ull)) = descriptorSets[1u]; } // 4.204 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(14ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(631ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(631ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(791ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(791ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(791ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(791ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(791ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(791ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(791ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(791ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(791ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(791ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.212 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(631ull)), app.GetResource(DescriptorSetID(791ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4732416u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.218 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.225 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.232 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.240 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(796ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(650ull)) = descriptorSets[1u]; } // 4.248 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(24ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(796ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(796ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(650ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(650ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(650ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(650ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(650ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(650ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(650ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(650ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(650ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(650ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.256 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(796ull)), app.GetResource(DescriptorSetID(650ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4733440u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.263 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.270 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.276 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.287 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(808ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(423ull)) = descriptorSets[1u]; } // 4.295 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(16ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(808ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(808ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(423ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(423ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(423ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(423ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(423ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(423ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(423ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(423ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(423ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(423ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.304 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(808ull)), app.GetResource(DescriptorSetID(423ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4733440u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.312 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.319 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.326 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.334 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(678ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(816ull)) = descriptorSets[1u]; } // 4.342 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(38ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(678ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(678ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(816ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(816ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(816ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(816ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(816ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(816ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(816ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(816ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(816ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(816ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.350 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(678ull)), app.GetResource(DescriptorSetID(816ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4733440u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.356 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.364 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.371 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.385 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(821ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(826ull)) = descriptorSets[1u]; } // 4.394 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(47ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(821ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(821ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(826ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(826ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(826ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(826ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(826ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(826ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(826ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(826ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(826ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(826ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.402 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(821ull)), app.GetResource(DescriptorSetID(826ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4734464u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.410 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.416 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.423 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.431 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(828ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(605ull)) = descriptorSets[1u]; } // 4.439 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(43ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(828ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(828ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(605ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(605ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(605ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(605ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(605ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(605ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(605ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(605ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(605ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(605ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.447 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(828ull)), app.GetResource(DescriptorSetID(605ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4734464u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.454 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.462 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.468 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.476 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(451ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(839ull)) = descriptorSets[1u]; } // 4.484 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(50ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(451ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(451ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(839ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(839ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(839ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(839ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(839ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(839ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(839ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(839ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(839ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(839ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.492 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(451ull)), app.GetResource(DescriptorSetID(839ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4734464u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.499 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.506 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.512 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.520 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(263ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(845ull)) = descriptorSets[1u]; } // 4.528 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(701ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(263ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(263ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(845ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(845ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(845ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(845ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(845ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(845ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(845ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(845ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(845ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(845ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.536 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(263ull)), app.GetResource(DescriptorSetID(845ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4735488u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.543 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.550 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.556 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.565 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(850ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(860ull)) = descriptorSets[1u]; } // 4.573 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(55ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(850ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(850ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(860ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(860ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(860ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(860ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(860ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(860ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(860ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(860ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(860ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(860ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.581 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(850ull)), app.GetResource(DescriptorSetID(860ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4736512u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.588 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.596 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.602 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.611 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(864ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(885ull)) = descriptorSets[1u]; } // 4.619 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(59ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(864ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(864ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(885ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(885ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(885ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(885ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(885ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(885ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(885ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(885ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(885ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(885ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.627 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(864ull)), app.GetResource(DescriptorSetID(885ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4736512u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.634 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.640 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.647 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.655 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(888ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(87ull)) = descriptorSets[1u]; } // 4.663 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(60ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(888ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(888ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(87ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(87ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(87ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(87ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(87ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(87ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(87ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(87ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(87ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(87ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.671 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(888ull)), app.GetResource(DescriptorSetID(87ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4736512u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.678 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.685 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.692 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.701 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(898ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(899ull)) = descriptorSets[1u]; } // 4.708 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(62ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(898ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(898ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(899ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(899ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(899ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(899ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(899ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(899ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(899ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(899ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(899ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(899ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.716 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(898ull)), app.GetResource(DescriptorSetID(899ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4737536u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.723 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.730 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.737 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.746 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(905ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(913ull)) = descriptorSets[1u]; } // 4.754 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(64ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(905ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(905ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(913ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(913ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(913ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(913ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(913ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(913ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(913ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(913ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(913ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(913ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.762 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(905ull)), app.GetResource(DescriptorSetID(913ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4737536u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.769 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.776 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.782 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.796 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(123ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(916ull)) = descriptorSets[1u]; } // 4.805 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(69ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(123ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(123ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(916ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(916ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(916ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(916ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(916ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(916ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(916ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(916ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(916ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(916ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.813 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(123ull)), app.GetResource(DescriptorSetID(916ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4738560u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.820 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.827 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.834 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.842 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(927ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(932ull)) = descriptorSets[1u]; } // 4.850 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(72ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(927ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(927ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(932ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(932ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(932ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(932ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(932ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(932ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(932ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(932ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(932ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(932ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.858 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(927ull)), app.GetResource(DescriptorSetID(932ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4738560u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.865 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.871 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.878 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.886 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5365ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1649ull)) = descriptorSets[1u]; } // 4.895 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(76ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5365ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5365ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1649ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1649ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1649ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1649ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1649ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1649ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1649ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1649ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1649ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1649ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.902 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5365ull)), app.GetResource(DescriptorSetID(1649ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4738560u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.909 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.916 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.922 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.932 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3224ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2101ull)) = descriptorSets[1u]; } // 4.941 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(175ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3224ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3224ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2101ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2101ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2101ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2101ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2101ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2101ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2101ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2101ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2101ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2101ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 4.951 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3224ull)), app.GetResource(DescriptorSetID(2101ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4739584u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 4.958 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 4.966 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 4.973 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 4.985 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(79ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5751ull)) = descriptorSets[1u]; } // 4.996 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(702ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(79ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(79ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5751ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5751ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5751ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5751ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5751ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5751ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5751ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5751ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5751ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5751ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.006 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(79ull)), app.GetResource(DescriptorSetID(5751ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4739584u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.013 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.021 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.028 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.038 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2078ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3230ull)) = descriptorSets[1u]; } // 5.048 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(88ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2078ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2078ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3230ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3230ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3230ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3230ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3230ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3230ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3230ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3230ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3230ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3230ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.058 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2078ull)), app.GetResource(DescriptorSetID(3230ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4739584u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.066 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.075 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.082 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.091 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3499ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3889ull)) = descriptorSets[1u]; } // 5.102 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(643ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3499ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3499ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3889ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3889ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3889ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3889ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3889ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3889ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3889ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3889ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3889ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3889ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.113 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3499ull)), app.GetResource(DescriptorSetID(3889ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4739584u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.121 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.130 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.137 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.147 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3468ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2734ull)) = descriptorSets[1u]; } // 5.157 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(703ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3468ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3468ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2734ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2734ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2734ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2734ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2734ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2734ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2734ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2734ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2734ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2734ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.166 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3468ull)), app.GetResource(DescriptorSetID(2734ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4739584u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.175 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.183 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.190 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.198 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5752ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4722ull)) = descriptorSets[1u]; } // 5.208 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(469ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5752ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5752ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4722ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4722ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4722ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4722ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4722ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4722ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4722ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4722ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4722ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4722ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.218 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5752ull)), app.GetResource(DescriptorSetID(4722ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4739584u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.226 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.233 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.240 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.249 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1724ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5755ull)) = descriptorSets[1u]; } // 5.258 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(707ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1724ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1724ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5755ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5755ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5755ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5755ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5755ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5755ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5755ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5755ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5755ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5755ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.267 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1724ull)), app.GetResource(DescriptorSetID(5755ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4739584u, 4731136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.274 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.286 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.296 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.317 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5758ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5744ull)) = descriptorSets[1u]; } // 5.327 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(709ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5758ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5758ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5744ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5744ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5744ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5744ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5744ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5744ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5744ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5744ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5744ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5744ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.336 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5758ull)), app.GetResource(DescriptorSetID(5744ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4740608u, 4741632u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.344 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.351 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.356 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.367 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5759ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5761ull)) = descriptorSets[1u]; } // 5.374 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(711ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5759ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5759ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5761ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5761ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5761ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5761ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5761ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(456ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5761ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5761ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5761ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5761ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5761ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.381 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5759ull)), app.GetResource(DescriptorSetID(5761ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4741888u, 4741632u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.386 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.391 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.396 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.405 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5762ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5766ull)) = descriptorSets[1u]; } // 5.412 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(712ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5762ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5762ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5766ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5766ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5766ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5766ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5766ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(456ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5766ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5766ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5766ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5766ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5766ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.420 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5762ull)), app.GetResource(DescriptorSetID(5766ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4741888u, 4741632u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.425 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.430 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.435 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.450 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3525ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5768ull)) = descriptorSets[1u]; } // 5.459 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(689ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3525ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3525ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5768ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5768ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5768ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5768ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5768ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5768ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5768ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5768ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5768ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5768ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.465 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3525ull)), app.GetResource(DescriptorSetID(5768ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4742912u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.471 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.477 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.482 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.490 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5769ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2817ull)) = descriptorSets[1u]; } // 5.497 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(578ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5769ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5769ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2817ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2817ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2817ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2817ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2817ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2817ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2817ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2817ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2817ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2817ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.504 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5769ull)), app.GetResource(DescriptorSetID(2817ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4742912u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.509 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.514 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.520 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.528 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3410ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5770ull)) = descriptorSets[1u]; } // 5.536 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(294ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3410ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3410ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5770ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5770ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5770ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5770ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5770ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5770ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5770ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5770ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5770ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5770ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.543 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3410ull)), app.GetResource(DescriptorSetID(5770ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4744192u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.548 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.554 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.559 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 4u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.566 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5774ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4242ull)) = descriptorSets[1u]; } // 5.573 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(81ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5774ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5774ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4242ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4242ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4242ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4242ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4242ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4242ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4242ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4242ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4242ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4242ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.581 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5774ull)), app.GetResource(DescriptorSetID(4242ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4745216u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.587 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.592 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.597 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.604 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5182ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2257ull)) = descriptorSets[1u]; } // 5.610 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(84ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5182ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5182ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2257ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2257ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2257ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2257ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2257ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2257ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2257ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2257ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2257ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2257ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.617 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5182ull)), app.GetResource(DescriptorSetID(2257ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4745216u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.624 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.630 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.635 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.642 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5778ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2788ull)) = descriptorSets[1u]; } // 5.651 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(92ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5778ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5778ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2788ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2788ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2788ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2788ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2788ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2788ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2788ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2788ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2788ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2788ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.665 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5778ull)), app.GetResource(DescriptorSetID(2788ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4746240u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.670 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.678 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.684 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.692 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5782ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2216ull)) = descriptorSets[1u]; } // 5.699 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(95ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5782ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5782ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2216ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2216ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2216ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2216ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2216ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2216ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2216ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2216ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2216ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2216ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.705 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5782ull)), app.GetResource(DescriptorSetID(2216ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4746240u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.711 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.718 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.724 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.734 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2222ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5783ull)) = descriptorSets[1u]; } // 5.743 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(101ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2222ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2222ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5783ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5783ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5783ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5783ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5783ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5783ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5783ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5783ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5783ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5783ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.752 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2222ull)), app.GetResource(DescriptorSetID(5783ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4746240u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.758 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.764 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.769 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.784 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5786ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5788ull)) = descriptorSets[1u]; } // 5.793 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(103ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5786ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5786ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5788ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5788ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5788ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5788ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5788ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5788ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5788ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5788ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5788ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5788ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.802 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5786ull)), app.GetResource(DescriptorSetID(5788ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4747264u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.808 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.814 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.819 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.829 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3454ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5791ull)) = descriptorSets[1u]; } // 5.836 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(108ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3454ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3454ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5791ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5791ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5791ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5791ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5791ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5791ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5791ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5791ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5791ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5791ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.843 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3454ull)), app.GetResource(DescriptorSetID(5791ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4747264u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.849 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.855 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.861 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.868 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5795ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5798ull)) = descriptorSets[1u]; } // 5.876 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(114ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5795ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5795ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5798ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5798ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5798ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5798ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5798ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5798ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5798ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5798ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5798ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5798ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.883 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5795ull)), app.GetResource(DescriptorSetID(5798ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4748288u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.889 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.895 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.901 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.909 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5799ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2631ull)) = descriptorSets[1u]; } // 5.917 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(116ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5799ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5799ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2631ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2631ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2631ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2631ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2631ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2631ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2631ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2631ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2631ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2631ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.926 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5799ull)), app.GetResource(DescriptorSetID(2631ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4748288u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.931 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.937 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.942 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.950 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5800ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1323ull)) = descriptorSets[1u]; } // 5.956 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(117ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5800ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5800ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1323ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1323ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1323ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1323ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1323ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1323ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1323ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1323ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1323ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1323ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 5.965 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5800ull)), app.GetResource(DescriptorSetID(1323ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4748288u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 5.971 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 5.978 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 5.985 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 5.996 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2399ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5802ull)) = descriptorSets[1u]; } // 6.005 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(121ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2399ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2399ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5802ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5802ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5802ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5802ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5802ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5802ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5802ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5802ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5802ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5802ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.015 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2399ull)), app.GetResource(DescriptorSetID(5802ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4749312u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.021 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.029 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.036 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.047 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5805ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1451ull)) = descriptorSets[1u]; } // 6.055 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(124ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5805ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5805ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1451ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1451ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1451ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1451ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1451ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1451ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1451ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1451ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1451ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1451ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.066 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5805ull)), app.GetResource(DescriptorSetID(1451ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4749312u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.077 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.089 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.096 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.108 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5423ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5807ull)) = descriptorSets[1u]; } // 6.119 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(128ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5423ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5423ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5807ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5807ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5807ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5807ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5807ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5807ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5807ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5807ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5807ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5807ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.130 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5423ull)), app.GetResource(DescriptorSetID(5807ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4750336u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.137 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.143 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.151 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.163 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5808ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5810ull)) = descriptorSets[1u]; } // 6.172 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(131ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5808ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5808ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5810ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5810ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5810ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5810ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5810ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5810ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5810ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5810ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5810ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5810ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.180 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5808ull)), app.GetResource(DescriptorSetID(5810ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4750336u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.187 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.193 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.199 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.215 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5811ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3349ull)) = descriptorSets[1u]; } // 6.224 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(133ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5811ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5811ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3349ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3349ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3349ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3349ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3349ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3349ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3349ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3349ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3349ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3349ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.232 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5811ull)), app.GetResource(DescriptorSetID(3349ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4751360u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.237 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.244 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.250 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.259 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5813ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5814ull)) = descriptorSets[1u]; } // 6.266 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(136ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5813ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5813ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5814ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5814ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5814ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5814ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5814ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5814ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5814ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5814ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5814ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5814ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.274 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5813ull)), app.GetResource(DescriptorSetID(5814ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4751360u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.285 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.290 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.296 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.304 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1083ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5815ull)) = descriptorSets[1u]; } // 6.313 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(137ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1083ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1083ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5815ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5815ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5815ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5815ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5815ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5815ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5815ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5815ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5815ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5815ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.322 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1083ull)), app.GetResource(DescriptorSetID(5815ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4751360u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.329 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.334 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.340 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.351 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5816ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5817ull)) = descriptorSets[1u]; } // 6.360 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(714ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5816ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5816ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5817ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5817ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5817ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5817ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5817ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5817ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5817ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5817ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5817ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5817ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.369 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5816ull)), app.GetResource(DescriptorSetID(5817ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4752384u, 4743936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.393 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.415 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.429 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.454 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5820ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5824ull)) = descriptorSets[1u]; } // 6.480 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(651ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5820ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5820ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5824ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5824ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5824ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5824ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5824ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5824ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5824ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5824ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5824ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5824ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.501 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5820ull)), app.GetResource(DescriptorSetID(5824ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4753408u, 4754432u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.519 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.529 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.546 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.584 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5827ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1887ull)) = descriptorSets[1u]; } // 6.597 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(347ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5827ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5827ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1887ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1887ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1887ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1887ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1887ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(456ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1887ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1887ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1887ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1887ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1887ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.607 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5827ull)), app.GetResource(DescriptorSetID(1887ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4754688u, 4754432u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.614 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.625 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.634 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 42u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.646 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4140ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5828ull)) = descriptorSets[1u]; } // 6.659 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(793ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4140ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4140ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5828ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5828ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5828ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5828ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5828ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(456ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5828ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5828ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5828ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5828ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5828ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.669 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4140ull)), app.GetResource(DescriptorSetID(5828ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4755712u, 4754432u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.679 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.685 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.691 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 43u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.699 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(577ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5834ull)) = descriptorSets[1u]; } // 6.707 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(718ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(577ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(577ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5834ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5834ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5834ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5834ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5834ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(456ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5834ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5834ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5834ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5834ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5834ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.713 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(577ull)), app.GetResource(DescriptorSetID(5834ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4756736u, 4754432u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.719 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.724 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.729 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.736 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5836ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2192ull)) = descriptorSets[1u]; } // 6.744 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(720ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5836ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5836ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2192ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2192ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2192ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2192ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2192ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2192ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2192ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2192ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2192ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2192ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.751 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5836ull)), app.GetResource(DescriptorSetID(2192ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4757760u, 4758784u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.756 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.761 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.766 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.780 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(26ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1580ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1811ull)) = descriptorSets[1u]; } // 6.788 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(51ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1580ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1580ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1811ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1811ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1811ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1811ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1811ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1811ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1811ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1811ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1811ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1811ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.795 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1580ull)), app.GetResource(DescriptorSetID(1811ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4759040u, 4758784u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.800 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.804 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.810 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.822 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(167ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5521ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4240ull)) = descriptorSets[1u]; } // 6.829 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(85ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5521ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5521ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4240ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4240ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4240ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4240ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4240ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4240ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4240ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4240ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4240ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4240ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.836 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5521ull)), app.GetResource(DescriptorSetID(4240ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4759040u, 4758784u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.841 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.847 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.851 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.858 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(167ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1857ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5839ull)) = descriptorSets[1u]; } // 6.865 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(94ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1857ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1857ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 944ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5839ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5839ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5839ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5839ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5839ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5839ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5839ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5839ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5839ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5839ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 6.870 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1857ull)), app.GetResource(DescriptorSetID(5839ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4704256u, 4759040u, 4758784u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(3ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 6.876 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 6.881 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 6.886 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 48u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 6.892 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(304ull)), /*query*/ 1u ); // 6.898 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(304ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4635ull)), /*dstOffset*/ 8ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 6.905 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(304ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u ); // 6.912 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass2 (const VApp &app) { // 6.991 ms { VkClearValue clearValues[1u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(7ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(32ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 1u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 7.011 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass3 (const VApp &app) { // 7.039 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(6ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(32ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 7.053 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(11ull)) ); // 7.066 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(1ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(28ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1194ull)) = descriptorSets[0u]; } // 7.075 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(470ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1194ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1194ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1194ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 7.081 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 2194.000000f; viewports[0u].height = 934.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 7.088 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 2194u, 934u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 7.094 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1194ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4760064u, 4760320u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(8ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.102 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 962560ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.107 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 281856ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.113 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 11424u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.119 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(11ull)) ); // 7.128 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(1ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(28ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1199ull)) = descriptorSets[0u]; } // 7.135 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1199ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1199ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1199ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 7.143 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1199ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4760576u, 4760832u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(8ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.148 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1010944ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.154 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 374016ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.158 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2112u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.164 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1199ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4761088u, 4760832u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(8ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.170 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 374016ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.175 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2112u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.180 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1199ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4761344u, 4760832u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(8ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.185 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 374016ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.190 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2112u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.195 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(11ull)) ); // 7.202 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(1ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(28ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1207ull)) = descriptorSets[0u]; } // 7.208 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(423ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1207ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1207ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1207ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 7.213 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1207ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4761600u, 4761856u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(8ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.218 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 962560ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.223 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 281856ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.228 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 11424u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.234 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(12ull)) ); // 7.241 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(23ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(545ull)) = descriptorSets[0u]; } // 7.249 ms { VkWriteDescriptorSet descriptorWrites[1u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 144ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(545ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 1u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 7.254 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(545ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4762112u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.260 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 402176ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.264 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(396ull)), /*offset*/ 592128ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.270 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 11904u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.279 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(2ull)) ); // 7.286 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(23ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1243ull)) = descriptorSets[0u]; } // 7.291 ms { VkWriteDescriptorSet descriptorWrites[1u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 144ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1243ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 1u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 7.296 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4762368u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.302 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(2121ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 492288ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.307 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 265728ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.313 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.318 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4762624u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.325 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 130304ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.332 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 571136ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.341 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.350 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4762880u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.358 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 571136ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.366 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.374 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4763136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.380 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 571136ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.388 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.395 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4763392u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.402 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 571136ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.410 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.431 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4763648u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.441 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 571136ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.448 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.455 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4763904u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.462 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 152320ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.470 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(396ull)), /*offset*/ 307456ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.477 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 24576u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.485 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4764160u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.492 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 130304ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.500 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 571136ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.505 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.512 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4764416u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.517 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 122112ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.522 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 586496ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.527 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.532 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4764672u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.537 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 130304ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.542 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 571136ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.547 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.552 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4764928u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.557 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 571136ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.562 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.567 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4765184u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.572 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(2121ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 492288ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.577 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 265728ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.581 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.586 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4765440u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.591 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 265728ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.596 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.601 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4765696u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.606 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 265728ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.611 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.616 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4765952u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.621 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 265728ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.626 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.631 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4766208u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.640 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 265728ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.644 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.649 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4766464u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.654 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 265728ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.659 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.664 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4766720u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.669 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 265728ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.674 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.679 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4766976u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.684 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 37888ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.688 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 442624ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.693 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 10644u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.698 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4767232u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.703 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 442624ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.708 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 10644u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.713 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4767488u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.718 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 442624ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.722 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 10644u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.733 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4767744u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.739 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 130304ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.744 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 571136ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.748 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.754 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4768000u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.759 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 895232ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.763 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 255232ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.768 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 3072u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.773 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4768256u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.778 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 130304ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.783 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 571136ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.787 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.793 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4768512u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.798 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 895232ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.802 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 255232ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.807 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 3072u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.812 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4768768u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.817 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(2121ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 492288ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.822 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 265728ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.827 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.832 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4769024u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.837 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 265728ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.841 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.846 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4769280u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.851 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 265728ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.856 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.861 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4769536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.866 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 122112ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.871 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 575744ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.876 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.881 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4769792u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.885 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 575744ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.890 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.895 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4770048u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.900 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 575744ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.905 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.910 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4770304u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.914 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 575744ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.919 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.924 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4770560u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.929 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(2121ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 492288ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.934 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 265728ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.939 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.944 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4770816u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 7.949 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 416512ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 7.954 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 988928ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 7.959 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 14688u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 7.965 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass4 (const VApp &app) { // 7.992 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(6ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(32ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 8.004 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4771072u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.008 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495104ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.013 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 52224ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.018 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 12972u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.023 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4771328u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.028 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 52224ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.033 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 12972u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.039 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4771584u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.044 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 122112ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.048 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 575744ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.053 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.063 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4771840u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.069 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 575744ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.074 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.079 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4772096u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.084 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 130304ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.089 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 571136ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.094 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.099 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4772352u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.104 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 987136ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.109 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 289024ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.114 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 1746u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.119 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4772608u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.124 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 292608ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.129 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 1746u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.134 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4772864u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.139 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 292608ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.145 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 1746u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.150 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4773120u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.155 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.160 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 310784ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.164 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.170 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4773376u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.175 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.180 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 256256ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.184 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.190 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4773632u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.195 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.200 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 310784ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.204 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.210 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4773888u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.215 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.219 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 273664ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.224 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.230 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4774144u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.234 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 130304ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.239 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 571136ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.244 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.250 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4774400u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.255 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.260 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 310784ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.264 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.271 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4774656u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.275 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 413184ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.280 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1009920ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.285 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.290 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4774912u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.295 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 122112ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.300 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 586496ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.305 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.310 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4775168u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.315 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 586496ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.319 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.324 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4775424u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.329 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.334 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 330240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.338 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.343 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4775680u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.348 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.353 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 260864ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.358 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.367 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4775936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.373 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 130304ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.377 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 571136ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.382 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.387 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4776192u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.392 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.397 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 273664ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.401 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.407 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4776448u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.412 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.416 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 330240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.421 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.426 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4776704u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.431 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.435 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 310784ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.440 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.445 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4776960u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.450 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.454 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 256256ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.459 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.464 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4777216u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.469 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.474 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 325376ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.479 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.484 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4777472u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.489 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.494 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 305920ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.498 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.503 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4777728u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.508 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.513 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 277760ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.518 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.523 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4777984u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.528 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.533 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 256256ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.537 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.543 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4778240u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.547 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.552 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 273664ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.556 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.561 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4778496u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.566 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 273664ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.571 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.576 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4778752u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.581 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.586 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 310784ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.590 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.596 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4779008u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.601 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.605 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 325376ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.610 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.615 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4779264u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.620 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.625 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 260864ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.630 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.635 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4779520u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.640 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.644 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 310784ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.649 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.654 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4779776u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.659 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 310784ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.663 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.673 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4780032u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.678 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.683 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 273664ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.688 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.693 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4780288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.698 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.702 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 330240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.707 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.712 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4780544u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.717 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.722 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 310784ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.727 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.732 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4780800u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.737 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.741 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 256256ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.746 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.752 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4781056u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.756 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.761 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 325376ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.766 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.770 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass5 (const VApp &app) { // 8.783 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(6ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(32ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 8.791 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4781312u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.796 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.800 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 256256ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.805 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.810 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4781568u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.815 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.820 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 277760ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.825 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.830 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4781824u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.835 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.840 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 310784ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.844 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.849 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4782080u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.854 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.859 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 273664ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.864 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.869 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4782336u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.874 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.878 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 330240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.883 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.888 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4782592u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.893 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.898 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 260864ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.902 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.907 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4782848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.912 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.917 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 305920ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.921 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.927 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4783104u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.932 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.937 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 325376ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.941 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.946 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4783360u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.951 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.956 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 256256ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.961 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.966 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4783616u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.970 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.975 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 310784ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.980 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 8.985 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4783872u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 8.990 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 987136ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 8.994 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 289024ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 8.999 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 1746u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.008 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4784128u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.014 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.019 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 256256ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.024 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.029 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4784384u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.034 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.039 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 310784ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.043 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.048 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4784640u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.053 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.058 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 273664ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.063 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.068 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4784896u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.073 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.077 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 330240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.082 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.088 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4785152u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.092 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.097 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 310784ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.101 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.106 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4785408u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.111 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.116 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 256256ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.120 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.126 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4785664u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.130 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.135 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 325376ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.139 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.144 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4785920u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.149 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.154 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 256256ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.159 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.164 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4786176u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.168 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.173 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 277760ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.178 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.183 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4786432u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.188 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.192 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 310784ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.197 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.202 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4786688u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.207 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.211 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 325376ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.216 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.221 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4786944u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.226 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 987136ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.231 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 289024ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.235 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 1746u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.240 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4787200u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.245 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.249 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 325376ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.254 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.259 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4787456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.265 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.270 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 305920ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.274 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.279 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4787712u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.284 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.289 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 277760ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.294 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.299 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4787968u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.304 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 417792ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.309 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1016064ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.314 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.322 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4788224u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.328 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.333 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 256256ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.338 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.343 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4788480u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.348 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 417792ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.353 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1016064ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.357 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.362 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4788736u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.367 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1016064ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.372 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.377 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4788992u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.382 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.387 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 325376ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.392 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.397 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4789248u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.402 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 417792ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.407 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1016064ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.412 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.417 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4789504u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.422 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1016064ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.427 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.432 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4789760u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.437 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.442 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 256256ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.447 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.452 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4790016u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.457 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 417792ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.462 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1016064ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.466 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.471 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4790272u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.476 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.481 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 310784ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.486 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.491 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4790528u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.496 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495104ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.500 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 52224ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.505 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 12972u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.510 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4790784u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.515 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 291840ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.521 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 802048ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.525 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 51198u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.530 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1243ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4791040u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.535 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 417792ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.540 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1016064ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.545 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.550 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass6 (const VApp &app) { // 9.559 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(6ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(32ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 9.566 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass7 (const VApp &app) { // 9.572 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(6ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(32ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 9.578 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass8 (const VApp &app) { } static void Frame1100_Thread11408_Pass9 (const VApp &app) { } static void Frame1100_Thread11408_Pass10 (const VApp &app) { // 9.935 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(31ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(32ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 9.942 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(17ull)) ); // 9.949 ms app.vkCmdBeginQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 0u, /*flags*/ VK_QUERY_CONTROL_PRECISE_BIT ); // 9.954 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(23ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1245ull)) = descriptorSets[0u]; } // 9.960 ms { VkWriteDescriptorSet descriptorWrites[1u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 80ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1245ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 1u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 9.965 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1245ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4798720u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.970 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 107200ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 9.975 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 497408ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 9.980 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 576u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 9.985 ms app.vkCmdEndQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 0u ); // 9.990 ms app.vkCmdBeginQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 1u, /*flags*/ VK_QUERY_CONTROL_PRECISE_BIT ); // 9.996 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1245ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4798720u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 10.001 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 108832ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 10.006 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 497408ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 10.010 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 576u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 10.015 ms app.vkCmdEndQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 1u ); // 10.020 ms app.vkCmdBeginQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 2u, /*flags*/ VK_QUERY_CONTROL_PRECISE_BIT ); // 10.025 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1245ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4798720u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 10.030 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 110560ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 10.034 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 497408ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 10.039 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 576u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 10.044 ms app.vkCmdEndQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 2u ); // 10.049 ms app.vkCmdBeginQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 3u, /*flags*/ VK_QUERY_CONTROL_PRECISE_BIT ); // 10.053 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1245ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4798720u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 10.058 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 112192ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 10.063 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 497408ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 10.068 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 252u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 10.073 ms app.vkCmdEndQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 3u ); // 10.077 ms app.vkCmdBeginQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 4u, /*flags*/ VK_QUERY_CONTROL_PRECISE_BIT ); // 10.082 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1245ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4798720u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 10.087 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 107008ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 10.092 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 497408ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 10.097 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 10.101 ms app.vkCmdEndQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 4u ); // 10.106 ms app.vkCmdBeginQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 5u, /*flags*/ VK_QUERY_CONTROL_PRECISE_BIT ); // 10.111 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1245ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4798720u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 10.116 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 107104ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 10.121 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 497408ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 10.126 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 10.130 ms app.vkCmdEndQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 5u ); // 10.135 ms app.vkCmdBeginQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 6u, /*flags*/ VK_QUERY_CONTROL_PRECISE_BIT ); // 10.140 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1245ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4798720u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 10.145 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 108736ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 10.150 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 497408ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 10.154 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 10.159 ms app.vkCmdEndQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 6u ); // 10.164 ms app.vkCmdBeginQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 7u, /*flags*/ VK_QUERY_CONTROL_PRECISE_BIT ); // 10.168 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1245ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4798720u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 10.173 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 110368ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 10.178 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 497408ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 10.183 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 10.187 ms app.vkCmdEndQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 7u ); // 10.192 ms app.vkCmdBeginQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 8u, /*flags*/ VK_QUERY_CONTROL_PRECISE_BIT ); // 10.197 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1245ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4798720u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 10.202 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 110464ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 10.207 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 497408ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 10.211 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 10.216 ms app.vkCmdEndQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 8u ); // 10.220 ms app.vkCmdBeginQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 9u, /*flags*/ VK_QUERY_CONTROL_PRECISE_BIT ); // 10.225 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1245ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4798720u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 10.230 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 112096ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 10.235 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 497408ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 10.239 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 10.244 ms app.vkCmdEndQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 9u ); // 10.250 ms app.vkCmdBeginQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 10u, /*flags*/ VK_QUERY_CONTROL_PRECISE_BIT ); // 10.255 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1245ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4798720u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 10.260 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 113728ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 10.265 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 497408ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 10.270 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 10.275 ms app.vkCmdEndQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 10u ); // 10.280 ms app.vkCmdBeginQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 11u, /*flags*/ VK_QUERY_CONTROL_PRECISE_BIT ); // 10.285 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1245ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4798720u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 10.290 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 113824ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 10.294 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 497408ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 10.299 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 10.304 ms app.vkCmdEndQuery( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*query*/ 11u ); // 10.309 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass11 (const VApp &app) { // 12.419 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(4ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(94ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2048u, 512u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 12.423 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(19ull)) ); // 12.435 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(244ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(721ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(238ull)) = descriptorSets[1u]; } // 12.438 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(721ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 48ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(238ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(238ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 12.439 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 2048.000000f; viewports[0u].height = 512.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 12.441 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 2048u, 512u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 12.442 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 12.443 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(721ull)), app.GetResource(DescriptorSetID(238ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4798976u, 4799232u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 12.445 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 12.446 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 12.446 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 12.448 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass12 (const VApp &app) { // 12.454 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(4ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(95ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1024u, 256u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 12.456 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(20ull)) ); // 12.459 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(244ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7321ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4724ull)) = descriptorSets[1u]; } // 12.460 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7321ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4724ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(637ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4724ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 12.461 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 1024.000000f; viewports[0u].height = 256.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 12.462 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 1024u, 256u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 12.463 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7321ull)), app.GetResource(DescriptorSetID(4724ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4799488u, 4799744u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 12.464 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 12.464 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 12.465 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 12.466 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass13 (const VApp &app) { // 12.470 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(4ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(96ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 512u, 128u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 12.472 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(244ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7323ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7324ull)) = descriptorSets[1u]; } // 12.474 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7323ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7324ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(639ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7324ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 12.475 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 512.000000f; viewports[0u].height = 128.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 12.476 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 512u, 128u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 12.476 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7323ull)), app.GetResource(DescriptorSetID(7324ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4800000u, 4800256u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 12.477 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 12.478 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 12.479 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 12.479 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass14 (const VApp &app) { // 12.482 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(4ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(97ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 256u, 64u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 12.489 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(244ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3279ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7325ull)) = descriptorSets[1u]; } // 12.490 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3279ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7325ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(641ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7325ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 12.491 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 256.000000f; viewports[0u].height = 64.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 12.492 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 256u, 64u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 12.493 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3279ull)), app.GetResource(DescriptorSetID(7325ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4800512u, 4800768u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 12.493 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 12.494 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 12.495 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 12.496 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass15 (const VApp &app) { // 12.499 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(4ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(98ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 128u, 32u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 12.502 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(244ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(517ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2132ull)) = descriptorSets[1u]; } // 12.503 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(517ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2132ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(259ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2132ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 12.504 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 128.000000f; viewports[0u].height = 32.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 12.505 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 128u, 32u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 12.506 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(517ull)), app.GetResource(DescriptorSetID(2132ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4801024u, 4801280u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 12.506 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 12.507 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 12.508 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 12.509 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass16 (const VApp &app) { // 12.512 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(4ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(99ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 64u, 16u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 12.514 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(244ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7326ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7328ull)) = descriptorSets[1u]; } // 12.515 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7326ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7328ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(642ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7328ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 12.516 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 64.000000f; viewports[0u].height = 16.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 12.517 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 64u, 16u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 12.517 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7326ull)), app.GetResource(DescriptorSetID(7328ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4801536u, 4801792u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 12.518 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 12.519 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 12.519 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 12.520 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass17 (const VApp &app) { // 12.524 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(4ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(100ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 32u, 8u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 12.525 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(244ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7329ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7330ull)) = descriptorSets[1u]; } // 12.526 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7329ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7330ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(124ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7330ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 12.527 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 32.000000f; viewports[0u].height = 8.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 12.528 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 32u, 8u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 12.529 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7329ull)), app.GetResource(DescriptorSetID(7330ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4802048u, 4802304u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 12.530 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 12.530 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 12.531 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 12.532 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass18 (const VApp &app) { // 12.535 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(4ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(101ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 16u, 4u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 12.537 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(244ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7332ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7333ull)) = descriptorSets[1u]; } // 12.539 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7332ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7333ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(645ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7333ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 12.540 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 16.000000f; viewports[0u].height = 4.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 12.540 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 16u, 4u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 12.541 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7332ull)), app.GetResource(DescriptorSetID(7333ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4802560u, 4802816u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 12.542 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 12.543 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 12.543 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 12.544 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass19 (const VApp &app) { // 12.547 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(4ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(102ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 8u, 2u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 12.549 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(244ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5993ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7334ull)) = descriptorSets[1u]; } // 12.551 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5993ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7334ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(647ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7334ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 12.552 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 8.000000f; viewports[0u].height = 2.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 12.553 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 8u, 2u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 12.554 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5993ull)), app.GetResource(DescriptorSetID(7334ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4803072u, 4803328u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 12.554 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 12.555 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 12.556 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 12.557 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass20 (const VApp &app) { // 12.560 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(4ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(103ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 4u, 1u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 12.562 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(244ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1473ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7335ull)) = descriptorSets[1u]; } // 12.563 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1473ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7335ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(648ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7335ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 12.564 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 4.000000f; viewports[0u].height = 1.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 12.565 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 4u, 1u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 12.566 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1473ull)), app.GetResource(DescriptorSetID(7335ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4803584u, 4803840u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 12.566 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 12.567 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 12.568 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 12.569 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass21 (const VApp &app) { // 12.572 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(4ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(104ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2u, 1u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 12.574 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(244ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4912ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5467ull)) = descriptorSets[1u]; } // 12.575 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4912ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5467ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(650ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5467ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 12.576 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 2.000000f; viewports[0u].height = 1.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 12.576 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 2u, 1u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 12.577 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4912ull)), app.GetResource(DescriptorSetID(5467ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4804096u, 4804352u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 12.578 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 12.579 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 12.579 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 12.580 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass22 (const VApp &app) { // 13.344 ms { VkClearValue clearValues[4u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 1065353216u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 1.000000f }; // current clear value depends on render pass // .depthStencil = { 0.501961f, 1056997505u } // .color.uint32 = { 1056997505u, 1056997505u, 1056997505u, 1065353216u } clearValues[1u].color = { 0.501961f, 0.501961f, 0.501961f, 1.000000f }; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 1065353216u } clearValues[2u].color = { 0.000000f, 0.000000f, 0.000000f, 1.000000f }; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[3u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(13ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(40ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 4u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 13.352 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass23 (const VApp &app) { // 13.368 ms { VkClearValue clearValues[7u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 1065353216u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 1.000000f }; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[1u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[2u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[3u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[4u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[5u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[6u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(32ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(41ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 7u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 13.373 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass24 (const VApp &app) { // 13.387 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(33ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(41ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 13.390 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(44ull)) ); // 13.435 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(6ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(261ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7597ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(411ull)) = descriptorSets[1u]; } // 13.440 ms { VkWriteDescriptorSet descriptorWrites[24u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(200ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(122ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; VkDescriptorImageInfo imageInfo_17[1u] = {}; VkDescriptorImageInfo imageInfo_18[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7597ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7597ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7597ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7597ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 608ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(294ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(223ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(301ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(295ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(135ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[17u].dstBinding = 13u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[17u].pImageInfo = imageInfo_12; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(199ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[18u].dstBinding = 14u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_13; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[19u].dstBinding = 15u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[19u].pImageInfo = imageInfo_14; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[20u].dstBinding = 16u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[20u].pImageInfo = imageInfo_15; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[21u].dstBinding = 17u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[21u].pImageInfo = imageInfo_16; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_17[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_17[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_17[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[22u].dstBinding = 18u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_17; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; descriptorWrites[23u].pNext = null; descriptorWrites[23u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_18[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_18[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_18[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[23u].dstSet = app.GetResource(DescriptorSetID(411ull)); descriptorWrites[23u].dstBinding = 19u; descriptorWrites[23u].dstArrayElement = 0u; descriptorWrites[23u].descriptorCount = 1u; descriptorWrites[23u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[23u].pImageInfo = imageInfo_18; descriptorWrites[23u].pBufferInfo = null; descriptorWrites[23u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 24u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.443 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 2194.000000f; viewports[0u].height = 934.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 13.444 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 2194u, 934u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 13.446 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 128u ); // 13.447 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7597ull)), app.GetResource(DescriptorSetID(411ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4804608u, 4804864u, 4805120u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(28ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.449 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 291840ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 13.450 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 597248ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.451 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 51198u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.453 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(167ull)) ); // 13.462 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(71ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(163ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(9915ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5767ull)) = descriptorSets[1u]; } // 13.465 ms { VkWriteDescriptorSet descriptorWrites[18u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(946ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(1068ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(9915ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(9915ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(9915ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(9915ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5767ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(260ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5767ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(261ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5767ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5767ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5767ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(263ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5767ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5767ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(135ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5767ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(199ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5767ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5767ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5767ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5767ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5767ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(5767ull)); descriptorWrites[17u].dstBinding = 13u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[17u].pImageInfo = imageInfo_12; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 18u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.467 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(9915ull)), app.GetResource(DescriptorSetID(5767ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4805888u, 4806144u, 4806400u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(89ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.468 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 416512ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 13.469 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 930048ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.470 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 14688u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.471 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(61ull)) ); // 13.478 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(13ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(257ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5348ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7565ull)) = descriptorSets[1u]; } // 13.480 ms { VkWriteDescriptorSet descriptorWrites[13u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1092ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(273ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5348ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5348ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5348ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5348ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 480ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7565ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7565ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7565ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7565ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(414ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7565ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7565ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7565ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7565ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7565ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 13u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.482 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5348ull)), app.GetResource(DescriptorSetID(7565ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4807168u, 4807424u, 4807680u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(14ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.484 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 895232ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 13.485 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 242944ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.485 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 3072u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.492 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5348ull)), app.GetResource(DescriptorSetID(7565ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4808192u, 4807424u, 4808448u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(14ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.493 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 242944ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.493 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 3072u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.495 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(46ull)) ); // 13.502 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(18ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(263ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7599ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(6225ull)) = descriptorSets[1u]; } // 13.504 ms { VkWriteDescriptorSet descriptorWrites[13u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(216ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(217ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(470ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 224ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7599ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7599ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7599ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7599ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7599ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 432ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(6225ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(193ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(6225ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(195ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(6225ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(6225ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(6225ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(6225ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(6225ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(6225ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 13u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.507 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 13.508 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7599ull)), app.GetResource(DescriptorSetID(6225ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4808960u, 4809216u, 4809472u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(31ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.509 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 962560ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 13.510 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 281856ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.510 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 11424u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.511 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(46ull)) ); // 13.516 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(18ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(263ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7601ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7602ull)) = descriptorSets[1u]; } // 13.517 ms { VkWriteDescriptorSet descriptorWrites[13u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(204ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(207ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 224ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7601ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7601ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7601ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7601ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7601ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 432ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7602ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(193ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7602ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(195ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7602ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7602ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7602ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7602ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7602ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7602ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 13u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.519 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 128u ); // 13.520 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7601ull)), app.GetResource(DescriptorSetID(7602ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4809984u, 4810240u, 4810496u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(31ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.520 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1010944ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 13.521 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 374016ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.522 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2112u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.524 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(18ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(263ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1807ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8401ull)) = descriptorSets[1u]; } // 13.525 ms { VkWriteDescriptorSet descriptorWrites[13u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(204ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(207ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 224ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1807ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1807ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1807ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1807ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1807ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 432ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8401ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(193ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8401ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(195ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8401ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(336ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8401ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8401ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8401ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8401ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8401ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 13u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.527 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1807ull)), app.GetResource(DescriptorSetID(8401ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4811008u, 4810240u, 4811264u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(31ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.528 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 374016ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.528 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2112u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.529 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(46ull)) ); // 13.532 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(18ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(263ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8487ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(9239ull)) = descriptorSets[1u]; } // 13.534 ms { VkWriteDescriptorSet descriptorWrites[13u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(216ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(217ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(423ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 224ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8487ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8487ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8487ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8487ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8487ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 432ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(9239ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(193ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(9239ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(195ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(9239ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(46ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(9239ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(9239ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(9239ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(9239ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(9239ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 13u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.535 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 13.536 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8487ull)), app.GetResource(DescriptorSetID(9239ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4811776u, 4812032u, 4812288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(31ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.537 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 962560ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 13.538 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 281856ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.539 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 11424u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.540 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(46ull)) ); // 13.548 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(18ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(263ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(9240ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(9241ull)) = descriptorSets[1u]; } // 13.552 ms { VkWriteDescriptorSet descriptorWrites[13u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(204ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(207ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 224ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(9240ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(9240ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(9240ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(9240ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(9240ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 432ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(9241ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(193ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(9241ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(195ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(9241ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(9241ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(9241ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(9241ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(9241ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(9241ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 13u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.554 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 128u ); // 13.555 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(9240ull)), app.GetResource(DescriptorSetID(9241ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4812800u, 4813056u, 4813312u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(31ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.556 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1010944ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 13.558 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 374016ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.559 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2112u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.561 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(168ull)) ); // 13.567 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(72ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(360ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10228ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10229ull)) = descriptorSets[1u]; } // 13.569 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(988ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(1072ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10228ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10228ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10228ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10228ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10229ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(260ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10229ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(261ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10229ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10229ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10229ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(263ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10229ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10229ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10229ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10229ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10229ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10229ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10229ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10229ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.729 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10228ull)), app.GetResource(DescriptorSetID(10229ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4813824u, 4814080u, 4814336u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(90ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.738 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495104ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 13.743 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 0ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.748 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 12972u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.753 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10228ull)), app.GetResource(DescriptorSetID(10229ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4815104u, 4814080u, 4815360u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(90ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.758 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 0ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.763 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 12972u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.773 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(72ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(360ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10230ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(390ull)) = descriptorSets[1u]; } // 13.780 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(988ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(1072ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10230ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10230ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10230ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10230ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(390ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(260ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(390ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(261ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(390ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(390ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(390ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(263ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(390ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(390ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(390ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(390ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(390ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(390ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(390ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(390ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.786 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10230ull)), app.GetResource(DescriptorSetID(390ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4816128u, 4814080u, 4816384u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(90ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.791 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 0ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.796 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 12972u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.801 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(6ull)) ); // 13.813 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(21ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(265ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(6012ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7623ull)) = descriptorSets[1u]; } // 13.819 ms { VkWriteDescriptorSet descriptorWrites[22u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(218ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(222ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(6012ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(6012ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(6012ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(6012ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(6012ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 624ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(274ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(275ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(46ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7623ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 22u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.826 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6012ull)), app.GetResource(DescriptorSetID(7623ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4817152u, 4817408u, 4817664u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(2ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.831 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 122112ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 13.836 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 554240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.840 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.846 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(21ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(265ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7275ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7578ull)) = descriptorSets[1u]; } // 13.852 ms { VkWriteDescriptorSet descriptorWrites[22u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(218ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(222ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7275ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7275ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7275ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7275ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7275ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 624ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(274ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(275ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(362ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7578ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 22u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.858 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7275ull)), app.GetResource(DescriptorSetID(7578ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4818432u, 4817408u, 4818688u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(2ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.863 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 554240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.867 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.872 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(21ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(265ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2946ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7624ull)) = descriptorSets[1u]; } // 13.877 ms { VkWriteDescriptorSet descriptorWrites[22u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(218ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(222ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2946ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2946ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2946ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2946ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2946ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 624ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(274ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(275ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(46ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7624ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 22u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.883 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2946ull)), app.GetResource(DescriptorSetID(7624ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4819456u, 4817408u, 4819712u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(2ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.888 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 554240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.892 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.902 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(21ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(265ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(6673ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7634ull)) = descriptorSets[1u]; } // 13.909 ms { VkWriteDescriptorSet descriptorWrites[22u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(218ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(222ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(6673ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(6673ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(6673ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(6673ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(6673ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 624ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(274ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(275ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(363ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7634ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 22u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.915 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6673ull)), app.GetResource(DescriptorSetID(7634ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4820480u, 4817408u, 4820736u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(2ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.919 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 554240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.924 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.929 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(21ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(265ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7501ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7636ull)) = descriptorSets[1u]; } // 13.935 ms { VkWriteDescriptorSet descriptorWrites[22u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(218ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(222ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7501ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7501ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7501ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7501ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7501ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 624ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(274ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(275ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(362ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7636ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 22u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.940 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7501ull)), app.GetResource(DescriptorSetID(7636ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4821504u, 4817408u, 4821760u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(2ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.945 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 554240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.950 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.955 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(21ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(265ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2952ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7637ull)) = descriptorSets[1u]; } // 13.960 ms { VkWriteDescriptorSet descriptorWrites[22u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(218ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(222ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2952ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2952ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2952ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2952ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2952ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 624ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(274ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(275ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(316ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7637ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 22u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 13.966 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2952ull)), app.GetResource(DescriptorSetID(7637ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4822528u, 4817408u, 4822784u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(2ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 13.970 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 554240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 13.975 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 13.980 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(47ull)) ); // 13.990 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(24ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(266ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7626ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1984ull)) = descriptorSets[1u]; } // 13.996 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(316ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(318ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7626ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7626ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7626ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7626ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1984ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1984ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1984ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(84ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1984ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1984ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(203ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1984ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(207ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1984ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1984ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(342ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(1984ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(1984ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(1984ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(1984ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(1984ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.002 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7626ull)), app.GetResource(DescriptorSetID(1984ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4823552u, 4823808u, 4824064u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(9ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.007 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 130304ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.012 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 503040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.016 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.026 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(24ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(266ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1312ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3180ull)) = descriptorSets[1u]; } // 14.032 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(316ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(318ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1312ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1312ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1312ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1312ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3180ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3180ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3180ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(84ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3180ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3180ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(203ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3180ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(207ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3180ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3180ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(338ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3180ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3180ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3180ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(3180ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(3180ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.038 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1312ull)), app.GetResource(DescriptorSetID(3180ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4824832u, 4823808u, 4825088u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(9ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.043 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 503040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.048 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.053 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(24ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(266ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7627ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2762ull)) = descriptorSets[1u]; } // 14.059 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(316ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(318ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7627ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7627ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7627ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7627ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2762ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2762ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2762ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(84ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2762ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2762ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(203ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2762ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(207ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2762ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2762ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(344ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(2762ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(2762ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(2762ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(2762ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(2762ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.065 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7627ull)), app.GetResource(DescriptorSetID(2762ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4825856u, 4823808u, 4826112u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(9ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.069 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 503040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.074 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.079 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(24ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(266ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7628ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3862ull)) = descriptorSets[1u]; } // 14.085 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(316ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(318ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7628ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7628ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7628ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7628ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3862ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3862ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3862ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(84ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3862ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3862ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(203ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3862ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(207ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3862ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3862ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(357ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3862ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3862ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3862ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(3862ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(3862ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.090 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7628ull)), app.GetResource(DescriptorSetID(3862ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4826880u, 4823808u, 4827136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(9ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.095 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 503040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.099 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.105 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(24ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(266ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7629ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7630ull)) = descriptorSets[1u]; } // 14.111 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(316ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(318ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7629ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7629ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7629ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7629ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7630ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7630ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7630ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(84ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7630ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7630ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(203ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7630ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(207ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7630ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7630ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(349ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7630ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7630ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7630ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7630ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7630ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.116 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7629ull)), app.GetResource(DescriptorSetID(7630ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4827904u, 4823808u, 4828160u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(9ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.121 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 503040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.125 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.135 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(24ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(266ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7631ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(6987ull)) = descriptorSets[1u]; } // 14.141 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(316ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(318ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7631ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7631ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7631ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7631ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(6987ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(6987ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(6987ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(84ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(6987ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(6987ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(203ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(6987ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(207ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(6987ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(6987ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(350ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(6987ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(6987ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(6987ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(6987ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(6987ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.147 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7631ull)), app.GetResource(DescriptorSetID(6987ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4828928u, 4823808u, 4829184u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(9ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.152 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 503040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.156 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.162 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(24ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(266ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5027ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7632ull)) = descriptorSets[1u]; } // 14.167 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(316ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(318ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5027ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5027ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5027ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5027ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7632ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7632ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7632ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(84ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7632ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7632ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(203ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7632ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(207ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7632ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7632ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(335ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7632ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7632ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7632ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7632ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7632ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.173 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5027ull)), app.GetResource(DescriptorSetID(7632ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4829952u, 4823808u, 4830208u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(9ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.177 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 503040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.182 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.188 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(24ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(266ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(870ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7633ull)) = descriptorSets[1u]; } // 14.193 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(316ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(318ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(870ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(870ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(870ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(870ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7633ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7633ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7633ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(84ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7633ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7633ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(203ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7633ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(207ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7633ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7633ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(179ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7633ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7633ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7633ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7633ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7633ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.199 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(870ull)), app.GetResource(DescriptorSetID(7633ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4830976u, 4823808u, 4831232u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(9ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.203 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 503040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.208 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.213 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(24ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(266ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8308ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7355ull)) = descriptorSets[1u]; } // 14.219 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(316ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(318ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8308ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8308ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8308ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8308ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7355ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7355ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7355ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(84ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7355ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7355ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(203ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7355ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(207ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7355ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7355ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(348ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7355ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7355ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7355ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7355ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7355ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.224 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8308ull)), app.GetResource(DescriptorSetID(7355ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4832000u, 4823808u, 4832256u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(9ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.229 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 503040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.233 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.243 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(24ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(266ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10231ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10232ull)) = descriptorSets[1u]; } // 14.249 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(316ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(318ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10231ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10231ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10231ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10231ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10232ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10232ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10232ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(84ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10232ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10232ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(203ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10232ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(207ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10232ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10232ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(332ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10232ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10232ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10232ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10232ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10232ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.257 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10231ull)), app.GetResource(DescriptorSetID(10232ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4833024u, 4823808u, 4833280u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(9ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.261 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 503040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.266 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.271 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(24ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(266ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10233ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10234ull)) = descriptorSets[1u]; } // 14.277 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(316ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(318ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10233ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10233ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10233ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10233ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10234ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10234ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10234ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(84ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10234ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10234ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(203ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10234ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(207ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10234ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10234ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(353ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10234ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10234ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10234ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10234ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10234ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.283 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10233ull)), app.GetResource(DescriptorSetID(10234ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4834048u, 4823808u, 4834304u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(9ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.287 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 503040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.292 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.297 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(24ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(266ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3201ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7867ull)) = descriptorSets[1u]; } // 14.302 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(316ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(318ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3201ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3201ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3201ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3201ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7867ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7867ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7867ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(84ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7867ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7867ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(203ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7867ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(207ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7867ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7867ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(354ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7867ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7867ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7867ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7867ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7867ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.308 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3201ull)), app.GetResource(DescriptorSetID(7867ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4835072u, 4823808u, 4835328u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(9ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.313 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 503040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.317 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.322 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(24ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(266ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(6545ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3975ull)) = descriptorSets[1u]; } // 14.328 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(316ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(318ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(6545ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(6545ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(6545ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(6545ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3975ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3975ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3975ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(84ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3975ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3975ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(203ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3975ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(207ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3975ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(204ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3975ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(356ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3975ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3975ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3975ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(3975ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(3975ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.334 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6545ull)), app.GetResource(DescriptorSetID(3975ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4836096u, 4823808u, 4836352u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(9ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.338 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 503040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.343 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 16926u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.347 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(6ull)) ); // 14.360 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(21ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(265ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3003ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7640ull)) = descriptorSets[1u]; } // 14.361 ms { VkWriteDescriptorSet descriptorWrites[22u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(224ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(225ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3003ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3003ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3003ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3003ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3003ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 624ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(224ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(225ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(361ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7640ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 22u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.363 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3003ull)), app.GetResource(DescriptorSetID(7640ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4837120u, 4837376u, 4837632u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(2ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.364 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(2121ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 492288ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.365 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 169984ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.366 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.368 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(21ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(265ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7641ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2128ull)) = descriptorSets[1u]; } // 14.369 ms { VkWriteDescriptorSet descriptorWrites[22u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(224ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(225ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7641ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7641ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7641ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7641ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7641ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 624ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(224ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(225ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(316ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(2128ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 22u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.370 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7641ull)), app.GetResource(DescriptorSetID(2128ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4838400u, 4837376u, 4838656u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(2ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.371 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 169984ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.372 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.374 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.379 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1907ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8309ull)) = descriptorSets[1u]; } // 14.381 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1907ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1907ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1907ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1907ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1907ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(8309ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.383 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1907ull)), app.GetResource(DescriptorSetID(8309ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4839424u, 4839680u, 4839936u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.384 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.385 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 301056ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.386 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.391 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(168ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8311ull)) = descriptorSets[1u]; } // 14.393 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(406ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(408ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(168ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(168ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(168ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(168ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(168ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(8311ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.394 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(168ull)), app.GetResource(DescriptorSetID(8311ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4840704u, 4839680u, 4840960u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.395 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.396 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 320512ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.396 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.398 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1742ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5004ull)) = descriptorSets[1u]; } // 14.399 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1742ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1742ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1742ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1742ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1742ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(5004ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.401 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1742ull)), app.GetResource(DescriptorSetID(5004ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4841728u, 4839680u, 4841984u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.401 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.402 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 301056ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.403 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.405 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8312ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8313ull)) = descriptorSets[1u]; } // 14.406 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8312ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8312ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8312ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8312ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8312ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(8313ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.407 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8312ull)), app.GetResource(DescriptorSetID(8313ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4842752u, 4839680u, 4843008u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.408 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 296192ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.409 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.410 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.413 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(6649ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4438ull)) = descriptorSets[1u]; } // 14.415 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(39ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(394ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(6649ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(6649ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(6649ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(6649ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(6649ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(4438ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.416 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6649ull)), app.GetResource(DescriptorSetID(4438ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4843776u, 4844032u, 4844288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.417 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.418 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 269568ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.419 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.420 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.425 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8932ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8597ull)) = descriptorSets[1u]; } // 14.427 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8932ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8932ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8932ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8932ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8932ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(215ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(8597ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.429 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8932ull)), app.GetResource(DescriptorSetID(8597ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4845056u, 4845312u, 4845568u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.432 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.433 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 296192ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.436 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.439 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(29ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(6053ull)) = descriptorSets[1u]; } // 14.441 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(406ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(408ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(29ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(29ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(29ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(29ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(29ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(6053ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.443 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(29ull)), app.GetResource(DescriptorSetID(6053ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4846336u, 4845312u, 4846592u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.444 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.445 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 315648ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.446 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.447 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass25 (const VApp &app) { // 14.457 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(33ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(41ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 14.462 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.465 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(314ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10235ull)) = descriptorSets[1u]; } // 14.467 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(400ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(402ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(314ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(314ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(314ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(314ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(314ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10235ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.469 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(314ull)), app.GetResource(DescriptorSetID(10235ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4847360u, 4847616u, 4847872u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.469 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 987136ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.470 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 281856ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.471 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1746u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.472 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.479 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10236ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1949ull)) = descriptorSets[1u]; } // 14.480 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(406ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(408ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10236ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10236ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10236ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10236ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10236ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(1949ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.482 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10236ull)), app.GetResource(DescriptorSetID(1949ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4848640u, 4848896u, 4849152u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.482 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.483 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 315648ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.484 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.485 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10237ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2683ull)) = descriptorSets[1u]; } // 14.487 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10237ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10237ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10237ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10237ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10237ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(2683ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.488 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10237ull)), app.GetResource(DescriptorSetID(2683ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4849920u, 4848896u, 4850176u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.489 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.489 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 301056ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.490 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.491 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.493 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5231ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10238ull)) = descriptorSets[1u]; } // 14.495 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(39ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(394ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5231ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5231ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5231ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5231ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5231ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10238ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.496 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5231ull)), app.GetResource(DescriptorSetID(10238ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4850944u, 4851200u, 4851456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.497 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.498 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 269568ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.498 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.501 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10239ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(543ull)) = descriptorSets[1u]; } // 14.502 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(397ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(398ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10239ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10239ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10239ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10239ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10239ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(543ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.503 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10239ull)), app.GetResource(DescriptorSetID(543ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4852224u, 4851200u, 4852480u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.504 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.505 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 247040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.505 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.506 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.512 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(9551ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10240ull)) = descriptorSets[1u]; } // 14.514 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(406ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(408ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(9551ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(9551ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(9551ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(9551ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(9551ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10240ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.515 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(9551ull)), app.GetResource(DescriptorSetID(10240ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4853248u, 4853504u, 4853760u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.516 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.516 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 315648ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.517 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.518 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.521 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10241ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10242ull)) = descriptorSets[1u]; } // 14.522 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(400ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(402ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10241ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10241ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10241ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10241ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10241ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10242ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.523 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10241ull)), app.GetResource(DescriptorSetID(10242ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4854528u, 4854784u, 4855040u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.524 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 987136ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.524 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 281856ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.525 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1746u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.527 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10241ull)), app.GetResource(DescriptorSetID(10242ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4855808u, 4854784u, 4856064u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.527 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 285440ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.528 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1746u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.529 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10241ull)), app.GetResource(DescriptorSetID(10242ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4856832u, 4854784u, 4857088u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.530 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 285440ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.531 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1746u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.531 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.537 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10244ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10245ull)) = descriptorSets[1u]; } // 14.538 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10244ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10244ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10244ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10244ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10244ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10245ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.540 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10244ull)), app.GetResource(DescriptorSetID(10245ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4857856u, 4858112u, 4858368u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.541 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.541 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 301056ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.542 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.543 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.545 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(183ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10246ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10247ull)) = descriptorSets[1u]; } // 14.547 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(397ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(398ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10246ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10246ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10246ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10246ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10246ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10247ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.548 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10246ull)), app.GetResource(DescriptorSetID(10247ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4859136u, 4859392u, 4859648u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.549 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.550 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 247040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.550 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.551 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.555 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8353ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10248ull)) = descriptorSets[1u]; } // 14.556 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8353ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8353ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8353ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8353ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8353ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10248ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.558 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8353ull)), app.GetResource(DescriptorSetID(10248ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4860416u, 4860672u, 4860928u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.559 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.559 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 301056ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.560 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.561 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.566 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10249ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10251ull)) = descriptorSets[1u]; } // 14.568 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(39ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(394ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10249ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10249ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10249ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10249ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10249ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10251ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.569 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10249ull)), app.GetResource(DescriptorSetID(10251ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4861696u, 4861952u, 4862208u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.570 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.571 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 265472ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.571 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.572 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.575 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(6489ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(9690ull)) = descriptorSets[1u]; } // 14.576 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(406ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(408ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(6489ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(6489ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(6489ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(6489ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(6489ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(9690ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.577 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6489ull)), app.GetResource(DescriptorSetID(9690ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4862976u, 4863232u, 4863488u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.578 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.579 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 320512ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.580 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.581 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8818ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10252ull)) = descriptorSets[1u]; } // 14.583 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8818ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8818ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8818ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8818ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8818ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10252ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.584 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8818ull)), app.GetResource(DescriptorSetID(10252ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4864256u, 4863232u, 4864512u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.585 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.585 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 301056ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.586 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.587 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.592 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10100ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5964ull)) = descriptorSets[1u]; } // 14.594 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(397ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(398ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10100ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10100ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10100ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10100ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10100ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(362ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(5964ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.663 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10100ull)), app.GetResource(DescriptorSetID(5964ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4865280u, 4865536u, 4865792u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.669 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.674 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 247040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.678 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.683 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.690 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10253ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3262ull)) = descriptorSets[1u]; } // 14.696 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(406ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(408ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10253ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10253ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10253ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10253ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10253ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(3262ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.702 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10253ull)), app.GetResource(DescriptorSetID(3262ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4866560u, 4866816u, 4867072u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.707 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.711 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 315648ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.716 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.720 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.727 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10254ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3830ull)) = descriptorSets[1u]; } // 14.732 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(397ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(398ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10254ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10254ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10254ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10254ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10254ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(3830ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.738 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10254ull)), app.GetResource(DescriptorSetID(3830ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4867840u, 4868096u, 4868352u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.743 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.747 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 247040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.752 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.758 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10254ull)), app.GetResource(DescriptorSetID(3830ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4869120u, 4868096u, 4869376u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.763 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 251648ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.768 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.777 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2431ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10255ull)) = descriptorSets[1u]; } // 14.783 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(397ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(398ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2431ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2431ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2431ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2431ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2431ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10255ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.789 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2431ull)), app.GetResource(DescriptorSetID(10255ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4870144u, 4868096u, 4870400u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.794 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 247040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.798 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.804 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(6852ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(6663ull)) = descriptorSets[1u]; } // 14.809 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(39ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(394ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(6852ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(6852ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(6852ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(6852ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(6852ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(6663ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.815 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6852ull)), app.GetResource(DescriptorSetID(6663ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4871168u, 4868096u, 4871424u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.820 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.824 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 265472ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.829 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.833 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.840 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10256ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8009ull)) = descriptorSets[1u]; } // 14.846 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(406ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(408ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10256ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10256ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10256ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10256ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10256ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(157ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(8009ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.851 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10256ull)), app.GetResource(DescriptorSetID(8009ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4872192u, 4872448u, 4872704u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.852 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.853 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 320512ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.854 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.860 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8841ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10257ull)) = descriptorSets[1u]; } // 14.861 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8841ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8841ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8841ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8841ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8841ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10257ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.863 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8841ull)), app.GetResource(DescriptorSetID(10257ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4873472u, 4872448u, 4873728u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.864 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.864 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 301056ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.865 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.867 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.870 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10258ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5771ull)) = descriptorSets[1u]; } // 14.871 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(397ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(398ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10258ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10258ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10258ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10258ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10258ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(5771ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.872 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10258ull)), app.GetResource(DescriptorSetID(5771ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4874496u, 4874752u, 4875008u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.873 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.874 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 247040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.875 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.876 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.878 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(752ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10259ull)) = descriptorSets[1u]; } // 14.879 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(406ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(408ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(752ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(752ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(752ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(752ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(752ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10259ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.880 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(752ull)), app.GetResource(DescriptorSetID(10259ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4875776u, 4876032u, 4876288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.881 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.882 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 315648ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.883 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.884 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10260ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10261ull)) = descriptorSets[1u]; } // 14.885 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(406ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(408ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10260ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10260ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10260ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10260ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10260ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10261ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.886 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10260ull)), app.GetResource(DescriptorSetID(10261ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4877056u, 4876032u, 4877312u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.887 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 320512ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.888 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.889 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.894 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10262ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10263ull)) = descriptorSets[1u]; } // 14.896 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(39ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(394ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10262ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10262ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10262ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10262ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10262ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10263ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.897 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10262ull)), app.GetResource(DescriptorSetID(10263ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4878080u, 4878336u, 4878592u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.898 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.899 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 269568ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.899 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.901 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10264ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10265ull)) = descriptorSets[1u]; } // 14.902 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(397ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(398ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10264ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10264ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10264ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10264ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10264ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10265ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.903 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10264ull)), app.GetResource(DescriptorSetID(10265ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4879360u, 4878336u, 4879616u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.904 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.907 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 247040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.908 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.912 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(209ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10266ull)) = descriptorSets[1u]; } // 14.914 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(39ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(394ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(209ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(209ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(209ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(209ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(209ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10266ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.915 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(209ull)), app.GetResource(DescriptorSetID(10266ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4880384u, 4878336u, 4880640u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.916 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.917 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 265472ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.917 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.919 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10267ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10268ull)) = descriptorSets[1u]; } // 14.920 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(39ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(394ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10267ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10267ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10267ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10267ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10267ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10268ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.921 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10267ull)), app.GetResource(DescriptorSetID(10268ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4881408u, 4878336u, 4881664u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.922 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 265472ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.924 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.925 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.932 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10269ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2028ull)) = descriptorSets[1u]; } // 14.933 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10269ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10269ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10269ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10269ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10269ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(2028ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.935 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10269ull)), app.GetResource(DescriptorSetID(2028ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4882432u, 4882688u, 4882944u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.936 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.937 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 301056ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.938 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.940 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10270ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8248ull)) = descriptorSets[1u]; } // 14.941 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(406ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(408ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10270ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10270ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10270ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10270ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10270ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(8248ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.942 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10270ull)), app.GetResource(DescriptorSetID(8248ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4883712u, 4882688u, 4883968u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.943 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.944 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 315648ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.945 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.946 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.949 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10271ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(9857ull)) = descriptorSets[1u]; } // 14.951 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(397ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(398ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10271ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10271ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10271ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10271ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10271ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(9857ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.952 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10271ull)), app.GetResource(DescriptorSetID(9857ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4884736u, 4884992u, 4885248u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.953 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.954 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 251648ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.955 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.956 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 14.962 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7440ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10272ull)) = descriptorSets[1u]; } // 14.970 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7440ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7440ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7440ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7440ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7440ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10272ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 14.975 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7440ull)), app.GetResource(DescriptorSetID(10272ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4886016u, 4886272u, 4886528u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 14.980 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 14.985 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 301056ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 14.989 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 14.995 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2246ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10273ull)) = descriptorSets[1u]; } // 15.000 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2246ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2246ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2246ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2246ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2246ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10273ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.006 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2246ull)), app.GetResource(DescriptorSetID(10273ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4887296u, 4886272u, 4887552u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.010 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 301056ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.015 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.020 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 15.026 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10274ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5301ull)) = descriptorSets[1u]; } // 15.032 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(39ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(394ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10274ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10274ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10274ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10274ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10274ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(5301ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.038 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10274ull)), app.GetResource(DescriptorSetID(5301ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4888320u, 4888576u, 4888832u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.043 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.047 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 265472ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.052 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.056 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 15.067 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10311ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10312ull)) = descriptorSets[1u]; } // 15.073 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10311ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10311ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10311ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10311ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10311ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10312ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.080 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10311ull)), app.GetResource(DescriptorSetID(10312ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4889600u, 4889856u, 4890112u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.084 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.089 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 301056ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.093 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.098 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 15.105 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4464ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10313ull)) = descriptorSets[1u]; } // 15.110 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(397ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(398ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4464ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4464ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4464ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4464ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4464ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10313ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.116 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4464ull)), app.GetResource(DescriptorSetID(10313ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4890880u, 4891136u, 4891392u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.121 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.125 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 251648ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.130 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.135 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2856ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10314ull)) = descriptorSets[1u]; } // 15.140 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(397ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(398ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2856ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2856ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2856ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2856ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2856ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10314ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.146 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2856ull)), app.GetResource(DescriptorSetID(10314ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4892160u, 4891136u, 4892416u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.151 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 247040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.155 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.159 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 15.167 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2297ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10315ull)) = descriptorSets[1u]; } // 15.172 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(406ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(408ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2297ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2297ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2297ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2297ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2297ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10315ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.178 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2297ull)), app.GetResource(DescriptorSetID(10315ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4893184u, 4893440u, 4893696u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.183 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.187 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 315648ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.192 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.196 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass26 (const VApp &app) { // 15.208 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(33ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(41ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 15.216 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 15.227 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10316ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10317ull)) = descriptorSets[1u]; } // 15.234 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(397ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(398ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10316ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10316ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10316ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10316ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10316ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(322ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10317ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.239 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10316ull)), app.GetResource(DescriptorSetID(10317ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4894464u, 4894720u, 4894976u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.244 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.250 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 247040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.257 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.263 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10318ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10319ull)) = descriptorSets[1u]; } // 15.269 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(39ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(394ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10318ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10318ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10318ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10318ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10318ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10319ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.275 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10318ull)), app.GetResource(DescriptorSetID(10319ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4895744u, 4894720u, 4896000u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.279 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.284 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 269568ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.288 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.293 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 15.300 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10320ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3962ull)) = descriptorSets[1u]; } // 15.306 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10320ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10320ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10320ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10320ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10320ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(3962ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.319 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10320ull)), app.GetResource(DescriptorSetID(3962ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4896768u, 4897024u, 4897280u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.326 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.331 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 301056ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.336 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.340 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 15.352 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(232ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3565ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10321ull)) = descriptorSets[1u]; } // 15.358 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(39ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(394ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3565ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3565ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3565ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3565ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3565ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10321ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.365 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3565ull)), app.GetResource(DescriptorSetID(10321ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4898048u, 4898304u, 4898560u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.370 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.374 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 265472ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.379 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.383 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 15.396 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(361ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(9796ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(9430ull)) = descriptorSets[1u]; } // 15.402 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(406ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(408ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(9796ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(9796ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(9796ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(9796ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(9796ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(9430ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.404 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(9796ull)), app.GetResource(DescriptorSetID(9430ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4899328u, 4899584u, 4899840u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.405 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.406 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 320512ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.407 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.409 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(361ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10322ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10323ull)) = descriptorSets[1u]; } // 15.411 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10322ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10322ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10322ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10322ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10322ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10323ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.412 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10322ull)), app.GetResource(DescriptorSetID(10323ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4900608u, 4899584u, 4900864u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.413 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.414 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 301056ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.415 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.417 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(361ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(9432ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(6684ull)) = descriptorSets[1u]; } // 15.418 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(9432ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(9432ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(9432ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(9432ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(9432ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(362ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(6684ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.419 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(9432ull)), app.GetResource(DescriptorSetID(6684ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4901632u, 4899584u, 4901888u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.420 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 296192ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.421 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.426 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(361ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3212ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8630ull)) = descriptorSets[1u]; } // 15.428 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(406ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(408ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3212ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3212ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3212ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3212ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3212ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(361ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(8630ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.429 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3212ull)), app.GetResource(DescriptorSetID(8630ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4902656u, 4899584u, 4902912u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.430 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1011712ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.430 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 315648ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.431 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2388u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.432 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 15.434 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(361ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(9998ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10324ull)) = descriptorSets[1u]; } // 15.436 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(397ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(398ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(9998ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(9998ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(9998ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(9998ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(9998ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10324ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.437 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(9998ull)), app.GetResource(DescriptorSetID(10324ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4903680u, 4903936u, 4904192u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.438 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.439 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 247040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.439 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.441 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(361ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10325ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(637ull)) = descriptorSets[1u]; } // 15.442 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(400ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(402ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10325ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10325ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10325ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10325ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10325ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(637ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.444 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10325ull)), app.GetResource(DescriptorSetID(637ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4904960u, 4903936u, 4905216u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.445 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 987136ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.445 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 281856ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.448 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1746u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.450 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(361ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10326ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10328ull)) = descriptorSets[1u]; } // 15.452 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(397ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(398ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10326ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10326ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10326ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10326ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(10326ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10328ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.453 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10326ull)), app.GetResource(DescriptorSetID(10328ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4905984u, 4903936u, 4906240u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.454 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 964864ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.454 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 247040ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.455 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2286u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.456 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 15.462 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(361ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5413ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(10329ull)) = descriptorSets[1u]; } // 15.463 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(409ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(410ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5413ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5413ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5413ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5413ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5413ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(10329ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.465 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5413ull)), app.GetResource(DescriptorSetID(10329ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4907008u, 4907264u, 4907520u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.466 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 998656ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.466 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 301056ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.467 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2346u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.469 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(22ull)) ); // 15.472 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(12ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(361ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3997ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5681ull)) = descriptorSets[1u]; } // 15.473 ms { VkWriteDescriptorSet descriptorWrites[21u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(39ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(394ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3997ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3997ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3997ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3997ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3997ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 576ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(266ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(267ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(299ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(290ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(5681ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 21u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.475 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3997ull)), app.GetResource(DescriptorSetID(5681ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4908288u, 4908544u, 4908800u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(12ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.476 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(192ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 976384ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.477 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 265472ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.477 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2016u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.478 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(75ull)) ); // 15.486 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(29ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(264ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4522ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7604ull)) = descriptorSets[1u]; } // 15.494 ms { VkWriteDescriptorSet descriptorWrites[25u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(218ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(222ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; VkDescriptorImageInfo imageInfo_17[1u] = {}; VkDescriptorImageInfo imageInfo_18[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4522ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4522ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4522ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4522ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4522ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 704ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(274ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(275ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(318ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(412ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; descriptorWrites[23u].pNext = null; descriptorWrites[23u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_17[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_17[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_17[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[23u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[23u].dstBinding = 18u; descriptorWrites[23u].dstArrayElement = 0u; descriptorWrites[23u].descriptorCount = 1u; descriptorWrites[23u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[23u].pImageInfo = imageInfo_17; descriptorWrites[23u].pBufferInfo = null; descriptorWrites[23u].pTexelBufferView = null; descriptorWrites[24u].pNext = null; descriptorWrites[24u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_18[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_18[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_18[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[24u].dstSet = app.GetResource(DescriptorSetID(7604ull)); descriptorWrites[24u].dstBinding = 19u; descriptorWrites[24u].dstArrayElement = 0u; descriptorWrites[24u].descriptorCount = 1u; descriptorWrites[24u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[24u].pImageInfo = imageInfo_18; descriptorWrites[24u].pBufferInfo = null; descriptorWrites[24u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 25u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.501 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4522ull)), app.GetResource(DescriptorSetID(7604ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4909568u, 4909824u, 4910080u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(25ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.505 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 122112ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.510 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 564992ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.515 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.525 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(29ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(264ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7606ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5612ull)) = descriptorSets[1u]; } // 15.531 ms { VkWriteDescriptorSet descriptorWrites[25u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(218ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(222ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; VkDescriptorImageInfo imageInfo_17[1u] = {}; VkDescriptorImageInfo imageInfo_18[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7606ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7606ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7606ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7606ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7606ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 704ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(274ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(275ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(215ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(409ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; descriptorWrites[23u].pNext = null; descriptorWrites[23u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_17[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_17[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_17[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[23u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[23u].dstBinding = 18u; descriptorWrites[23u].dstArrayElement = 0u; descriptorWrites[23u].descriptorCount = 1u; descriptorWrites[23u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[23u].pImageInfo = imageInfo_17; descriptorWrites[23u].pBufferInfo = null; descriptorWrites[23u].pTexelBufferView = null; descriptorWrites[24u].pNext = null; descriptorWrites[24u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_18[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_18[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_18[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[24u].dstSet = app.GetResource(DescriptorSetID(5612ull)); descriptorWrites[24u].dstBinding = 19u; descriptorWrites[24u].dstArrayElement = 0u; descriptorWrites[24u].descriptorCount = 1u; descriptorWrites[24u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[24u].pImageInfo = imageInfo_18; descriptorWrites[24u].pBufferInfo = null; descriptorWrites[24u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 25u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.537 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7606ull)), app.GetResource(DescriptorSetID(5612ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4910848u, 4909824u, 4911104u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(25ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.542 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 564992ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.546 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.552 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(29ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(264ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7607ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3404ull)) = descriptorSets[1u]; } // 15.558 ms { VkWriteDescriptorSet descriptorWrites[25u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(218ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(222ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; VkDescriptorImageInfo imageInfo_17[1u] = {}; VkDescriptorImageInfo imageInfo_18[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7607ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7607ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7607ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7607ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7607ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 704ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(274ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(275ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(318ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(412ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; descriptorWrites[23u].pNext = null; descriptorWrites[23u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_17[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_17[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_17[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[23u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[23u].dstBinding = 18u; descriptorWrites[23u].dstArrayElement = 0u; descriptorWrites[23u].descriptorCount = 1u; descriptorWrites[23u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[23u].pImageInfo = imageInfo_17; descriptorWrites[23u].pBufferInfo = null; descriptorWrites[23u].pTexelBufferView = null; descriptorWrites[24u].pNext = null; descriptorWrites[24u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_18[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_18[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_18[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[24u].dstSet = app.GetResource(DescriptorSetID(3404ull)); descriptorWrites[24u].dstBinding = 19u; descriptorWrites[24u].dstArrayElement = 0u; descriptorWrites[24u].descriptorCount = 1u; descriptorWrites[24u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[24u].pImageInfo = imageInfo_18; descriptorWrites[24u].pBufferInfo = null; descriptorWrites[24u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 25u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.564 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7607ull)), app.GetResource(DescriptorSetID(3404ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4911872u, 4909824u, 4912128u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(25ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.568 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 564992ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.573 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 5322u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.578 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(40ull)) ); // 15.588 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(24ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(267ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7657ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7658ull)) = descriptorSets[1u]; } // 15.595 ms { VkWriteDescriptorSet descriptorWrites[18u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(427ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(428ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(242ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7657ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7657ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7657ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7657ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7657ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7658ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(265ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7658ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(314ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7658ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(227ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7658ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7658ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(84ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7658ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(271ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7658ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7658ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(334ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7658ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7658ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7658ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7658ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7658ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 18u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.602 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7657ull)), app.GetResource(DescriptorSetID(7658ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4912896u, 4913152u, 4913408u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(23ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.607 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 152320ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.611 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(396ull)), /*offset*/ 209152ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.616 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 24576u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.620 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(41ull)) ); // 15.628 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(27ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(268ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7660ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7661ull)) = descriptorSets[1u]; } // 15.633 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(87ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(431ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 160ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7660ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7660ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7660ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7660ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 192ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7661ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.639 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7660ull)), app.GetResource(DescriptorSetID(7661ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4914176u, 4914432u, 4914688u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(24ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.644 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 402176ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.648 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(396ull)), /*offset*/ 592128ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.653 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 11904u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.658 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(48ull)) ); // 15.672 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(36ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(332ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8954ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2037ull)) = descriptorSets[1u]; } // 15.679 ms { VkWriteDescriptorSet descriptorWrites[20u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(478ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(481ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8954ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8954ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8954ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8954ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 528ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(21ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(210ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(34ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(211ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(212ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(414ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[17u].dstBinding = 13u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_12; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[18u].dstBinding = 14u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_13; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(2037ull)); descriptorWrites[19u].dstBinding = 15u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_14; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 20u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.685 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8954ull)), app.GetResource(DescriptorSetID(2037ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4914944u, 4915200u, 4915456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(39ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.691 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 417792ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.695 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1012992ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.700 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.706 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(36ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(332ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8792ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(9001ull)) = descriptorSets[1u]; } // 15.712 ms { VkWriteDescriptorSet descriptorWrites[20u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(478ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(481ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8792ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8792ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8792ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8792ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 528ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(21ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(210ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(34ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(211ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(212ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(336ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(414ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[17u].dstBinding = 13u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_12; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[18u].dstBinding = 14u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_13; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(9001ull)); descriptorWrites[19u].dstBinding = 15u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_14; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 20u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.717 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8792ull)), app.GetResource(DescriptorSetID(9001ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4916224u, 4915200u, 4916480u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(39ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.722 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1012992ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.727 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.732 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(36ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(332ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(10001ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5725ull)) = descriptorSets[1u]; } // 15.738 ms { VkWriteDescriptorSet descriptorWrites[20u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(173ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(896ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(10001ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(10001ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(10001ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(10001ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 528ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(21ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(210ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(34ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(211ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(212ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(336ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(414ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[17u].dstBinding = 13u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_12; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[18u].dstBinding = 14u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_13; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(5725ull)); descriptorWrites[19u].dstBinding = 15u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_14; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 20u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.744 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(10001ull)), app.GetResource(DescriptorSetID(5725ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4917248u, 4915200u, 4917504u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(39ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.748 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 413184ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.753 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1006848ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.758 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.762 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(30ull)) ); // 15.776 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(22ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(271ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7665ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7666ull)) = descriptorSets[1u]; } // 15.783 ms { VkWriteDescriptorSet descriptorWrites[23u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(224ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(225ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7665ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7665ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7665ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7665ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7665ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 656ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(224ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(225ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(318ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(412ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(7666ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 23u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.789 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7665ull)), app.GetResource(DescriptorSetID(7666ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4918272u, 4918528u, 4918784u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(18ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.794 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(2121ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 492288ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.799 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 169984ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.803 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.810 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(22ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(271ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7668ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5856ull)) = descriptorSets[1u]; } // 15.815 ms { VkWriteDescriptorSet descriptorWrites[23u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(224ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(225ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7668ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7668ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7668ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7668ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7668ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 656ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(224ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(225ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(249ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(408ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(5856ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 23u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.823 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7668ull)), app.GetResource(DescriptorSetID(5856ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4919552u, 4918528u, 4919808u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(18ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.824 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 169984ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.824 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.825 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(30ull)) ); // 15.831 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(22ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(271ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3837ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7670ull)) = descriptorSets[1u]; } // 15.832 ms { VkWriteDescriptorSet descriptorWrites[23u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(270ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(276ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(1102ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3837ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3837ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3837ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3837ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3837ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 656ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(230ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(231ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(336ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(414ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(7670ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 23u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.834 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3837ull)), app.GetResource(DescriptorSetID(7670ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4920576u, 4920832u, 4921088u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(18ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.835 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 37888ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.835 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 399616ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.836 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 10644u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.838 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(22ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(271ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7671ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7672ull)) = descriptorSets[1u]; } // 15.839 ms { VkWriteDescriptorSet descriptorWrites[23u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(270ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(276ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(1149ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7671ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7671ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7671ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7671ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7671ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 656ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(230ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(231ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(336ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(414ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(7672ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 23u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.841 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7671ull)), app.GetResource(DescriptorSetID(7672ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4921856u, 4920832u, 4922112u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(18ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.841 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 399616ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.842 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 10644u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.843 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(30ull)) ); // 15.849 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(22ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(271ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7674ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(147ull)) = descriptorSets[1u]; } // 15.851 ms { VkWriteDescriptorSet descriptorWrites[23u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(224ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(225ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7674ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7674ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7674ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7674ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7674ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 656ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(224ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(225ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(215ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(409ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(147ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 23u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.852 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7674ull)), app.GetResource(DescriptorSetID(147ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4922880u, 4923136u, 4923392u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(18ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.853 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(2121ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 492288ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.854 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 169984ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.854 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.857 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(22ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(271ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(781ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4795ull)) = descriptorSets[1u]; } // 15.858 ms { VkWriteDescriptorSet descriptorWrites[23u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(224ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(225ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(781ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(781ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(781ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(781ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(781ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 656ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(224ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(225ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(46ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(412ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(4795ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 23u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.859 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(781ull)), app.GetResource(DescriptorSetID(4795ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4924160u, 4923136u, 4924416u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(18ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.860 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 169984ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.861 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.863 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(22ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(271ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(434ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7675ull)) = descriptorSets[1u]; } // 15.864 ms { VkWriteDescriptorSet descriptorWrites[23u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(224ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(225ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(434ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(434ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(434ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(434ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(434ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 656ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(224ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(225ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(362ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(409ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(7675ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 23u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.866 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(434ull)), app.GetResource(DescriptorSetID(7675ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4925184u, 4923136u, 4925440u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(18ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.866 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 169984ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.867 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.869 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(22ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(271ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7676ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7678ull)) = descriptorSets[1u]; } // 15.870 ms { VkWriteDescriptorSet descriptorWrites[23u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(224ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(225ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7676ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7676ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7676ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7676ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7676ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 656ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(224ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(225ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(316ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(409ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(7678ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 23u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.871 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7676ull)), app.GetResource(DescriptorSetID(7678ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4926208u, 4923136u, 4926464u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(18ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.872 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 169984ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.873 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.873 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(30ull)) ); // 15.880 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(22ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(271ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7679ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(6276ull)) = descriptorSets[1u]; } // 15.881 ms { VkWriteDescriptorSet descriptorWrites[23u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(270ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(276ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(1101ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7679ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7679ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7679ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7679ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7679ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 656ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(230ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(231ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(336ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(414ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(6276ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 23u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.883 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7679ull)), app.GetResource(DescriptorSetID(6276ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4927232u, 4927488u, 4927744u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(18ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.883 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 37888ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.884 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 399616ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.885 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 10644u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.886 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(30ull)) ); // 15.888 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(22ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(271ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4651ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7683ull)) = descriptorSets[1u]; } // 15.890 ms { VkWriteDescriptorSet descriptorWrites[23u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(224ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(225ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4651ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4651ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4651ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4651ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4651ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 656ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(224ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(225ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(316ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(409ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(7683ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 23u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.891 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4651ull)), app.GetResource(DescriptorSetID(7683ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4928512u, 4928768u, 4929024u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(18ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.892 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(2121ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 492288ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.892 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 169984ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.893 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.895 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(22ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(271ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7684ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7685ull)) = descriptorSets[1u]; } // 15.896 ms { VkWriteDescriptorSet descriptorWrites[23u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(224ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(225ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7684ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7684ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7684ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7684ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7684ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 656ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(224ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(225ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(157ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(408ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(7685ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 23u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.897 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7684ull)), app.GetResource(DescriptorSetID(7685ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4929792u, 4928768u, 4930048u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(18ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.898 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 169984ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.899 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.904 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(22ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(271ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7686ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7688ull)) = descriptorSets[1u]; } // 15.905 ms { VkWriteDescriptorSet descriptorWrites[23u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(224ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(225ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7686ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7686ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7686ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7686ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7686ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 656ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(224ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(225ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(362ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(409ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(7688ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 23u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.907 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7686ull)), app.GetResource(DescriptorSetID(7688ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4930816u, 4928768u, 4931072u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(18ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.908 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 169984ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.908 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.909 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(50ull)) ); // 15.916 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(33ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(276ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7768ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4039ull)) = descriptorSets[1u]; } // 15.918 ms { VkWriteDescriptorSet descriptorWrites[19u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(478ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(481ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7768ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7768ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7768ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7768ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 496ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4039ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(21ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4039ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(210ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4039ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4039ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(34ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4039ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4039ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4039ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(211ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4039ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(212ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(4039ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(253ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(4039ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(4039ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(4039ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(4039ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(4039ull)); descriptorWrites[17u].dstBinding = 13u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[17u].pImageInfo = imageInfo_12; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(4039ull)); descriptorWrites[18u].dstBinding = 14u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_13; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 19u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.920 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7768ull)), app.GetResource(DescriptorSetID(4039ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4931840u, 4932096u, 4932352u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(37ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.921 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(1565ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 417792ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.922 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1012992ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.923 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.925 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(33ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(276ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8545ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7771ull)) = descriptorSets[1u]; } // 15.926 ms { VkWriteDescriptorSet descriptorWrites[19u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(478ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(481ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8545ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8545ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8545ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8545ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 496ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7771ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(21ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7771ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(210ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7771ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(416ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7771ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(34ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7771ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(14ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7771ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_4; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7771ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_5; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(211ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7771ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_6; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(212ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7771ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_7; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(336ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7771ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_8; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7771ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[14u].pImageInfo = imageInfo_9; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(7771ull)); descriptorWrites[15u].dstBinding = 11u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[15u].pImageInfo = imageInfo_10; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(7771ull)); descriptorWrites[16u].dstBinding = 12u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_11; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(7771ull)); descriptorWrites[17u].dstBinding = 13u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[17u].pImageInfo = imageInfo_12; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(7771ull)); descriptorWrites[18u].dstBinding = 14u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[18u].pImageInfo = imageInfo_13; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 19u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.928 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8545ull)), app.GetResource(DescriptorSetID(7771ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4932864u, 4932096u, 4933120u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(37ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.928 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1012992ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.929 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.931 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8545ull)), app.GetResource(DescriptorSetID(7771ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4933632u, 4932096u, 4933888u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(37ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.931 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1012992ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.932 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.933 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8545ull)), app.GetResource(DescriptorSetID(7771ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4934400u, 4932096u, 4934656u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(37ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.934 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1012992ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.935 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.939 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8545ull)), app.GetResource(DescriptorSetID(7771ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4935168u, 4932096u, 4935424u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(37ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.940 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1824ull)), /*offset*/ 1012992ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.941 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 684u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.942 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(164ull)) ); // 15.948 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(11ull)), app.GetResource(DescriptorSetLayoutID(69ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(333ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8995ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(858ull)) = descriptorSets[1u]; } // 15.950 ms { VkWriteDescriptorSet descriptorWrites[24u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(224ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(225ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(154ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; VkDescriptorImageInfo imageInfo_13[1u] = {}; VkDescriptorImageInfo imageInfo_14[1u] = {}; VkDescriptorImageInfo imageInfo_15[1u] = {}; VkDescriptorImageInfo imageInfo_16[1u] = {}; VkDescriptorImageInfo imageInfo_17[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8995ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8995ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8995ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8995ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8995ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 640ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(224ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(285ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[9u].dstBinding = 4u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(225ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[10u].dstBinding = 5u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(276ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[11u].dstBinding = 6u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[12u].dstBinding = 7u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[13u].dstBinding = 8u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(208ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[14u].dstBinding = 9u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(287ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[15u].dstBinding = 10u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_9; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(198ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[16u].dstBinding = 11u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[16u].pImageInfo = imageInfo_10; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; descriptorWrites[17u].pNext = null; descriptorWrites[17u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(552ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[17u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[17u].dstBinding = 12u; descriptorWrites[17u].dstArrayElement = 0u; descriptorWrites[17u].descriptorCount = 1u; descriptorWrites[17u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[17u].pImageInfo = imageInfo_11; descriptorWrites[17u].pBufferInfo = null; descriptorWrites[17u].pTexelBufferView = null; descriptorWrites[18u].pNext = null; descriptorWrites[18u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(107ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[18u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[18u].dstBinding = 13u; descriptorWrites[18u].dstArrayElement = 0u; descriptorWrites[18u].descriptorCount = 1u; descriptorWrites[18u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[18u].pImageInfo = imageInfo_12; descriptorWrites[18u].pBufferInfo = null; descriptorWrites[18u].pTexelBufferView = null; descriptorWrites[19u].pNext = null; descriptorWrites[19u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_13[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_13[0u].imageView = app.GetResource(ImageViewID(362ull)); imageInfo_13[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[19u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[19u].dstBinding = 14u; descriptorWrites[19u].dstArrayElement = 0u; descriptorWrites[19u].descriptorCount = 1u; descriptorWrites[19u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[19u].pImageInfo = imageInfo_13; descriptorWrites[19u].pBufferInfo = null; descriptorWrites[19u].pTexelBufferView = null; descriptorWrites[20u].pNext = null; descriptorWrites[20u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_14[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_14[0u].imageView = app.GetResource(ImageViewID(409ull)); imageInfo_14[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[20u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[20u].dstBinding = 15u; descriptorWrites[20u].dstArrayElement = 0u; descriptorWrites[20u].descriptorCount = 1u; descriptorWrites[20u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[20u].pImageInfo = imageInfo_14; descriptorWrites[20u].pBufferInfo = null; descriptorWrites[20u].pTexelBufferView = null; descriptorWrites[21u].pNext = null; descriptorWrites[21u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_15[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_15[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_15[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[21u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[21u].dstBinding = 16u; descriptorWrites[21u].dstArrayElement = 0u; descriptorWrites[21u].descriptorCount = 1u; descriptorWrites[21u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[21u].pImageInfo = imageInfo_15; descriptorWrites[21u].pBufferInfo = null; descriptorWrites[21u].pTexelBufferView = null; descriptorWrites[22u].pNext = null; descriptorWrites[22u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_16[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_16[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_16[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[22u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[22u].dstBinding = 17u; descriptorWrites[22u].dstArrayElement = 0u; descriptorWrites[22u].descriptorCount = 1u; descriptorWrites[22u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[22u].pImageInfo = imageInfo_16; descriptorWrites[22u].pBufferInfo = null; descriptorWrites[22u].pTexelBufferView = null; descriptorWrites[23u].pNext = null; descriptorWrites[23u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_17[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_17[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_17[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[23u].dstSet = app.GetResource(DescriptorSetID(858ull)); descriptorWrites[23u].dstBinding = 18u; descriptorWrites[23u].dstArrayElement = 0u; descriptorWrites[23u].descriptorCount = 1u; descriptorWrites[23u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[23u].pImageInfo = imageInfo_17; descriptorWrites[23u].pBufferInfo = null; descriptorWrites[23u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 24u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 15.951 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8995ull)), app.GetResource(DescriptorSetID(858ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4935936u, 4936192u, 4936448u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(80ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 15.953 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(2121ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 492288ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 15.953 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1804ull)), /*offset*/ 169984ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 15.954 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 23832u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 15.955 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass27 (const VApp &app) { // 15.962 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(33ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(41ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 15.966 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass28 (const VApp &app) { // 15.974 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(33ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(41ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 15.976 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass29 (const VApp &app) { // 15.990 ms { VkClearValue clearValues[2u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[1u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(15ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(42ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 2u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 15.994 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass30 (const VApp &app) { // 16.009 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(34ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(43ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 16.012 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(77ull)) ); // 16.015 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(162ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5740ull)) = descriptorSets[0u]; } // 16.017 ms { VkWriteDescriptorSet descriptorWrites[1u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5740ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 1u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.018 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 16.019 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5740ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4937216u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.020 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.021 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.022 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.023 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(60ull)) ); // 16.027 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(54ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(85ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7790ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5338ull)) = descriptorSets[1u]; } // 16.030 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7790ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 368ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5338ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5338ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5338ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5338ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5338ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5338ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5338ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_5; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5338ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_6; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.031 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 129u ); // 16.032 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7790ull)), app.GetResource(DescriptorSetID(5338ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4937472u, 4937728u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(76ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.033 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.034 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.034 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.035 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(77ull)) ); // 16.036 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(162ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7559ull)) = descriptorSets[0u]; } // 16.037 ms { VkWriteDescriptorSet descriptorWrites[1u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7559ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 1u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.038 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 16.039 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7559ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4938240u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.040 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.040 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.041 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.042 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(60ull)) ); // 16.044 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(54ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(85ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8484ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8553ull)) = descriptorSets[1u]; } // 16.045 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8484ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 368ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8553ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8553ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8553ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8553ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8553ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8553ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8553ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_5; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8553ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_6; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.046 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 129u ); // 16.047 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8484ull)), app.GetResource(DescriptorSetID(8553ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4938496u, 4938752u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(76ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.048 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.049 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.049 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.050 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(77ull)) ); // 16.051 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(162ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7048ull)) = descriptorSets[0u]; } // 16.052 ms { VkWriteDescriptorSet descriptorWrites[1u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7048ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 1u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.053 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 16.053 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7048ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4939264u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.054 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.055 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.056 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.056 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(60ull)) ); // 16.063 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(54ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(85ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4344ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8554ull)) = descriptorSets[1u]; } // 16.064 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4344ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 368ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8554ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8554ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8554ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8554ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8554ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8554ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8554ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_5; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8554ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_6; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.065 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 129u ); // 16.066 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4344ull)), app.GetResource(DescriptorSetID(8554ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4939520u, 4939776u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(76ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.067 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.067 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.068 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.069 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(77ull)) ); // 16.070 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(162ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5568ull)) = descriptorSets[0u]; } // 16.071 ms { VkWriteDescriptorSet descriptorWrites[1u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5568ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 1u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.072 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 16.073 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5568ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4940288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.073 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.074 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.075 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.075 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(60ull)) ); // 16.077 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(54ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(85ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3924ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4968ull)) = descriptorSets[1u]; } // 16.078 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3924ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 368ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4968ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4968ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4968ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4968ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4968ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4968ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4968ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_5; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4968ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_6; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.079 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 129u ); // 16.080 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3924ull)), app.GetResource(DescriptorSetID(4968ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4940544u, 4940800u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(76ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.081 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.082 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.083 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.083 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(77ull)) ); // 16.084 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(162ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(926ull)) = descriptorSets[0u]; } // 16.085 ms { VkWriteDescriptorSet descriptorWrites[1u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(926ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 1u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.086 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 16.087 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(926ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4941312u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.087 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.088 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.089 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.090 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(60ull)) ); // 16.091 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(54ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(85ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8955ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8956ull)) = descriptorSets[1u]; } // 16.092 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8955ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 368ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8956ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8956ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8956ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8956ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8956ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8956ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8956ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_5; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8956ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_6; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.093 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 129u ); // 16.094 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8955ull)), app.GetResource(DescriptorSetID(8956ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4941568u, 4941824u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(76ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.095 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.096 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.096 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.097 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(77ull)) ); // 16.098 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(162ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4054ull)) = descriptorSets[0u]; } // 16.099 ms { VkWriteDescriptorSet descriptorWrites[1u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4054ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 1u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.100 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 16.101 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4054ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4942336u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.102 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.102 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.103 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.104 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(133ull)) ); // 16.107 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(54ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(85ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8957ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8958ull)) = descriptorSets[1u]; } // 16.108 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8957ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 368ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8958ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8958ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8958ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8958ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8958ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8958ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8958ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_5; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8958ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_6; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.109 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 129u ); // 16.110 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8957ull)), app.GetResource(DescriptorSetID(8958ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4942592u, 4942848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(76ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.110 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.111 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.112 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.113 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(77ull)) ); // 16.114 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(162ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4174ull)) = descriptorSets[0u]; } // 16.114 ms { VkWriteDescriptorSet descriptorWrites[1u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4174ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 1u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.115 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 16.116 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4174ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4943360u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.117 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.118 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.118 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.119 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(133ull)) ); // 16.124 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(54ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(85ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1577ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8959ull)) = descriptorSets[1u]; } // 16.126 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1577ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 368ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8959ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8959ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8959ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8959ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8959ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8959ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8959ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_5; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8959ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_6; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.231 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 129u ); // 16.237 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1577ull)), app.GetResource(DescriptorSetID(8959ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4943616u, 4943872u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(76ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.242 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.248 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.253 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.257 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(77ull)) ); // 16.262 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(162ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7781ull)) = descriptorSets[0u]; } // 16.268 ms { VkWriteDescriptorSet descriptorWrites[1u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7781ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 1u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.273 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 16.277 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7781ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4944384u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.282 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.286 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.291 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.295 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(60ull)) ); // 16.302 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(54ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(85ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2682ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1912ull)) = descriptorSets[1u]; } // 16.307 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2682ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 368ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1912ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1912ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1912ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1912ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1912ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1912ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1912ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_5; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1912ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_6; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.313 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 129u ); // 16.317 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2682ull)), app.GetResource(DescriptorSetID(1912ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4944640u, 4944896u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(76ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.322 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.326 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.331 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.335 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(77ull)) ); // 16.340 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(162ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4853ull)) = descriptorSets[0u]; } // 16.378 ms { VkWriteDescriptorSet descriptorWrites[1u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4853ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 1u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.383 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 16.387 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4853ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4945408u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.392 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.397 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.401 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.406 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(133ull)) ); // 16.411 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(54ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(85ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(982ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8960ull)) = descriptorSets[1u]; } // 16.417 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(982ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 368ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8960ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8960ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8960ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8960ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8960ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8960ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8960ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_5; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8960ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_6; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.422 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 129u ); // 16.427 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(982ull)), app.GetResource(DescriptorSetID(8960ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4945664u, 4945920u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(76ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.431 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.436 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.440 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.445 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(77ull)) ); // 16.450 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(162ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8961ull)) = descriptorSets[0u]; } // 16.454 ms { VkWriteDescriptorSet descriptorWrites[1u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8961ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 1u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.459 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 16.470 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8961ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4946432u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.480 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.489 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.500 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.509 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(60ull)) ); // 16.518 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(54ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(85ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(9605ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(9606ull)) = descriptorSets[1u]; } // 16.524 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(9605ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 368ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(9606ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(9606ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(9606ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(9606ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(9606ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(9606ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(9606ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_5; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(9606ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_6; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.530 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 129u ); // 16.534 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(9605ull)), app.GetResource(DescriptorSetID(9606ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4946688u, 4946944u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(76ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.539 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.544 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.549 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.554 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(77ull)) ); // 16.559 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(162ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(9604ull)) = descriptorSets[0u]; } // 16.564 ms { VkWriteDescriptorSet descriptorWrites[1u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(9604ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 1u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.569 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 16.573 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(9604ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4947456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.576 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.577 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.578 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.579 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(133ull)) ); // 16.587 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(54ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(85ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(9697ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8737ull)) = descriptorSets[1u]; } // 16.589 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 64ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(9697ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 368ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8737ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(420ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8737ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(273ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8737ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(277ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8737ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(291ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8737ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8737ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8737ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_5; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8737ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_6; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.590 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 129u ); // 16.591 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(9697ull)), app.GetResource(DescriptorSetID(8737ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4947712u, 4947968u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(76ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.592 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494336ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.593 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494080ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.593 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 36u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.594 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass31 (const VApp &app) { // 16.605 ms { VkClearValue clearValues[1u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(35ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(32ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 1u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 16.609 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass32 (const VApp &app) { // 16.614 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(8ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(44ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1098u, 618u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 16.616 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(33ull)) ); // 16.620 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(40ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(69ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5685ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5686ull)) = descriptorSets[1u]; } // 16.623 ms { VkWriteDescriptorSet descriptorWrites[6u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5685ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 128ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5686ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5686ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5686ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(358ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5686ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(548ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5686ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 6u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.624 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 1097.000000f; viewports[0u].height = 467.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 16.625 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 1097u, 467u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 16.626 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 16.627 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5685ull)), app.GetResource(DescriptorSetID(5686ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4948480u, 4948736u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(35ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.628 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.629 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.630 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.630 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass33 (const VApp &app) { // 16.639 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(8ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(46ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 549u, 309u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 16.640 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(33ull)) ); // 16.643 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(40ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(69ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3665ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7792ull)) = descriptorSets[1u]; } // 16.644 ms { VkWriteDescriptorSet descriptorWrites[6u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3665ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 128ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7792ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7792ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7792ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(358ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7792ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(548ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7792ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 6u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.645 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 548.000000f; viewports[0u].height = 233.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 16.646 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 548u, 233u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 16.647 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3665ull)), app.GetResource(DescriptorSetID(7792ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4948992u, 4949248u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(35ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.648 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.648 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.649 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.650 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass34 (const VApp &app) { // 16.658 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(36ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(47ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 549u, 309u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 16.660 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(68ull)) ); // 16.664 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(32ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(279ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(861ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7708ull)) = descriptorSets[1u]; } // 16.665 ms { VkWriteDescriptorSet descriptorWrites[7u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(861ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 208ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7708ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(80ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7708ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(28ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7708ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(90ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7708ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(558ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7708ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(558ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7708ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 7u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.667 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 549.000000f; viewports[0u].height = 234.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 16.667 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 549u, 234u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 16.668 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(861ull)), app.GetResource(DescriptorSetID(7708ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4949504u, 4949760u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(36ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.669 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.670 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.671 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.672 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass35 (const VApp &app) { // 16.679 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(36ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(48ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1098u, 618u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 16.681 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(64ull)) ); // 16.684 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(32ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(279ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7793ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1812ull)) = descriptorSets[1u]; } // 16.685 ms { VkWriteDescriptorSet descriptorWrites[7u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7793ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 208ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1812ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(80ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1812ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(28ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1812ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(559ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1812ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(557ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1812ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(557ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1812ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 7u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.686 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 1097.000000f; viewports[0u].height = 467.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 16.687 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 1097u, 467u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 16.688 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7793ull)), app.GetResource(DescriptorSetID(1812ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4950016u, 4950272u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(36ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.689 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.689 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.690 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.691 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass36 (const VApp &app) { // 16.698 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(37ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(49ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 16.700 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(69ull)) ); // 16.704 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(37ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(280ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7796ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7797ull)) = descriptorSets[1u]; } // 16.706 ms { VkWriteDescriptorSet descriptorWrites[10u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7796ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 304ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7797ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(80ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7797ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(28ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7797ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(560ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7797ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(557ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7797ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7797ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7797ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_5; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(358ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7797ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_6; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(548ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7797ull)); descriptorWrites[9u].dstBinding = 8u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_7; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 10u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.707 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 2194.000000f; viewports[0u].height = 934.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 16.708 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 2194u, 934u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 16.709 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7796ull)), app.GetResource(DescriptorSetID(7797ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4950528u, 4950784u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(34ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.710 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.711 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.711 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.712 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass37 (const VApp &app) { // 16.721 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(8ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(50ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 16.723 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(70ull)) ); // 16.726 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(20ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(153ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1366ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5687ull)) = descriptorSets[1u]; } // 16.728 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1366ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 160ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5687ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(358ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5687ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(548ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5687ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(534ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5687ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.729 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1366ull)), app.GetResource(DescriptorSetID(5687ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4951296u, 4951552u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(38ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.730 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.731 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.732 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.733 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass38 (const VApp &app) { // 16.744 ms { VkClearValue clearValues[1u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(35ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(32ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 1u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 16.747 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass39 (const VApp &app) { // 16.756 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(25ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(51ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 64u, 64u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 16.759 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(0ull)) ); // 16.768 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(27ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(38ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7798ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7800ull)) = descriptorSets[1u]; } // 16.770 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7798ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7798ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 96ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7800ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.771 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 64.000000f; viewports[0u].height = 64.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 16.772 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 64u, 64u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 16.773 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7798ull)), app.GetResource(DescriptorSetID(7800ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4951808u, 4952064u, 4952320u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(45ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.774 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.775 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 64u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 16.776 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass40 (const VApp &app) { // 16.788 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(20ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(53ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 16.790 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(174ull)) ); // 16.795 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(41ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(281ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1712ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7801ull)) = descriptorSets[1u]; } // 16.797 ms { VkWriteDescriptorSet descriptorWrites[13u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1712ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 624ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7801ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7801ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(158ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7801ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7801ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7801ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_2; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(358ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7801ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_3; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(548ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7801ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_4; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(296ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7801ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_5; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(549ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7801ull)); descriptorWrites[9u].dstBinding = 8u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_6; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(534ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7801ull)); descriptorWrites[10u].dstBinding = 9u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_7; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(44ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7801ull)); descriptorWrites[11u].dstBinding = 10u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_8; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(555ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7801ull)); descriptorWrites[12u].dstBinding = 11u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_9; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 13u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.799 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 2194.000000f; viewports[0u].height = 934.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 16.800 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 2194u, 934u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 16.801 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1712ull)), app.GetResource(DescriptorSetID(7801ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4952576u, 4952832u, 4953600u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(48ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.802 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.803 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.804 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.806 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1712ull)), app.GetResource(DescriptorSetID(7801ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4953856u, 4954112u, 4953600u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(48ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.807 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.808 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.809 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.811 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1712ull)), app.GetResource(DescriptorSetID(7801ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4954880u, 4955136u, 4953600u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(48ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.812 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.812 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.813 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.819 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1712ull)), app.GetResource(DescriptorSetID(7801ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4955904u, 4956160u, 4953600u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(48ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.820 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.821 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.822 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.823 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(137ull)) ); // 16.826 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(41ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(281ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7802ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7804ull)) = descriptorSets[1u]; } // 16.828 ms { VkWriteDescriptorSet descriptorWrites[13u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7802ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 624ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7804ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7804ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(158ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7804ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7804ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7804ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_2; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(358ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7804ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_3; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(548ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7804ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_4; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(296ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7804ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_5; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(549ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7804ull)); descriptorWrites[9u].dstBinding = 8u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_6; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(534ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7804ull)); descriptorWrites[10u].dstBinding = 9u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_7; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(44ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7804ull)); descriptorWrites[11u].dstBinding = 10u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_8; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(555ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7804ull)); descriptorWrites[12u].dstBinding = 11u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_9; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 13u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.829 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7802ull)), app.GetResource(DescriptorSetID(7804ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4956928u, 4957184u, 4957952u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(48ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.830 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.830 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.831 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.833 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7802ull)), app.GetResource(DescriptorSetID(7804ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4958208u, 4958464u, 4957952u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(48ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.834 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.835 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.835 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.838 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7802ull)), app.GetResource(DescriptorSetID(7804ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4959232u, 4959488u, 4957952u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(48ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.838 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.839 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.840 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.845 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7802ull)), app.GetResource(DescriptorSetID(7804ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4960256u, 4960512u, 4957952u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(48ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.846 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.847 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.848 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.848 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass41 (const VApp &app) { // 16.851 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(20ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(53ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 16.853 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(73ull)) ); // 16.856 ms app.vkCmdSetDepthBounds( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*minDepthBounds*/ 0.007032f, /*maxDepthBounds*/ 1.000000f ); // 16.857 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(41ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(281ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7805ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1538ull)) = descriptorSets[1u]; } // 16.859 ms { VkWriteDescriptorSet descriptorWrites[13u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7805ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 624ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1538ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1538ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(158ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1538ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1538ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1538ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_2; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(358ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1538ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_3; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(548ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1538ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_4; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(296ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1538ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_5; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(549ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1538ull)); descriptorWrites[9u].dstBinding = 8u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_6; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(534ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1538ull)); descriptorWrites[10u].dstBinding = 9u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_7; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(44ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1538ull)); descriptorWrites[11u].dstBinding = 10u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_8; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(555ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(1538ull)); descriptorWrites[12u].dstBinding = 11u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_9; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 13u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.860 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7805ull)), app.GetResource(DescriptorSetID(1538ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4961280u, 4961536u, 4962304u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(48ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.861 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.862 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.862 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.863 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(72ull)) ); // 16.866 ms app.vkCmdSetDepthBounds( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*minDepthBounds*/ 0.003408f, /*maxDepthBounds*/ 0.006047f ); // 16.867 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(41ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(281ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7807ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7809ull)) = descriptorSets[1u]; } // 16.868 ms { VkWriteDescriptorSet descriptorWrites[13u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7807ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 608ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7809ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7809ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(158ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7809ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(555ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7809ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7809ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_2; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7809ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_3; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(358ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7809ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_4; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(548ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7809ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_5; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(296ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7809ull)); descriptorWrites[9u].dstBinding = 8u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_6; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(549ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7809ull)); descriptorWrites[10u].dstBinding = 9u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_7; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(534ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7809ull)); descriptorWrites[11u].dstBinding = 10u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_8; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(44ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7809ull)); descriptorWrites[12u].dstBinding = 11u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_9; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 13u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.869 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7807ull)), app.GetResource(DescriptorSetID(7809ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4962560u, 4962816u, 4963584u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(46ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.870 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.871 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.872 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.873 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(73ull)) ); // 16.875 ms app.vkCmdSetDepthBounds( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*minDepthBounds*/ 0.007668f, /*maxDepthBounds*/ 1.000000f ); // 16.879 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(41ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(281ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7810ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2506ull)) = descriptorSets[1u]; } // 16.881 ms { VkWriteDescriptorSet descriptorWrites[13u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7810ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 624ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2506ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2506ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(158ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2506ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2506ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2506ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_2; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(358ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2506ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_3; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(548ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2506ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_4; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(296ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2506ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_5; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(549ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2506ull)); descriptorWrites[9u].dstBinding = 8u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_6; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(534ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2506ull)); descriptorWrites[10u].dstBinding = 9u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_7; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(44ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2506ull)); descriptorWrites[11u].dstBinding = 10u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_8; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(555ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(2506ull)); descriptorWrites[12u].dstBinding = 11u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_9; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 13u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.882 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7810ull)), app.GetResource(DescriptorSetID(2506ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4963840u, 4964096u, 4964864u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(48ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.883 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.884 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.884 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.887 ms app.vkCmdSetDepthBounds( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*minDepthBounds*/ 0.006806f, /*maxDepthBounds*/ 1.000000f ); // 16.888 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7810ull)), app.GetResource(DescriptorSetID(2506ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4965120u, 4965376u, 4964864u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(48ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.889 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.889 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.890 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.891 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(18ull)) ); // 16.894 ms app.vkCmdSetDepthBounds( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*minDepthBounds*/ 0.008783f, /*maxDepthBounds*/ 1.000000f ); // 16.895 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(41ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(281ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7811ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7812ull)) = descriptorSets[1u]; } // 16.896 ms { VkWriteDescriptorSet descriptorWrites[13u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7811ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 608ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7812ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7812ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(158ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7812ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(555ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7812ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7812ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_2; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7812ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_3; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(358ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7812ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_4; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(548ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7812ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_5; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(296ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7812ull)); descriptorWrites[9u].dstBinding = 8u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_6; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(549ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7812ull)); descriptorWrites[10u].dstBinding = 9u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_7; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(534ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7812ull)); descriptorWrites[11u].dstBinding = 10u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_8; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(44ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7812ull)); descriptorWrites[12u].dstBinding = 11u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_9; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 13u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.897 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7811ull)), app.GetResource(DescriptorSetID(7812ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4966144u, 4966400u, 4967168u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(46ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.898 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.899 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.899 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.900 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(73ull)) ); // 16.902 ms app.vkCmdSetDepthBounds( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*minDepthBounds*/ 0.003619f, /*maxDepthBounds*/ 0.027531f ); // 16.906 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(41ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(281ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(6856ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4373ull)) = descriptorSets[1u]; } // 16.907 ms { VkWriteDescriptorSet descriptorWrites[13u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(6856ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 624ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4373ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4373ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(158ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4373ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4373ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4373ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_2; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(358ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4373ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_3; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(548ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4373ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_4; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(296ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4373ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_5; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(549ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4373ull)); descriptorWrites[9u].dstBinding = 8u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_6; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(534ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4373ull)); descriptorWrites[10u].dstBinding = 9u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_7; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(44ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4373ull)); descriptorWrites[11u].dstBinding = 10u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_8; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(555ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(4373ull)); descriptorWrites[12u].dstBinding = 11u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_9; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 13u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.908 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6856ull)), app.GetResource(DescriptorSetID(4373ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4967424u, 4967680u, 4968448u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(48ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.909 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.910 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.911 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.913 ms app.vkCmdSetDepthBounds( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*minDepthBounds*/ 0.012950f, /*maxDepthBounds*/ 1.000000f ); // 16.914 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6856ull)), app.GetResource(DescriptorSetID(4373ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4968704u, 4968960u, 4968448u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(48ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.915 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.915 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.916 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.918 ms app.vkCmdSetDepthBounds( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*minDepthBounds*/ 0.004840f, /*maxDepthBounds*/ 0.023779f ); // 16.919 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6856ull)), app.GetResource(DescriptorSetID(4373ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4969728u, 4969984u, 4968448u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(48ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.920 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 528128ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.920 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 522240ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.921 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 1296u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.922 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(72ull)) ); // 16.924 ms app.vkCmdSetDepthBounds( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*minDepthBounds*/ 0.004207f, /*maxDepthBounds*/ 0.009829f ); // 16.925 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(41ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(281ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3989ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3165ull)) = descriptorSets[1u]; } // 16.926 ms { VkWriteDescriptorSet descriptorWrites[13u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3989ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 608ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3165ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3165ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(158ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3165ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(555ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3165ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3165ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_2; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3165ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_3; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(358ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3165ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_4; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(548ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3165ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_5; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(296ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3165ull)); descriptorWrites[9u].dstBinding = 8u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_6; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(549ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3165ull)); descriptorWrites[10u].dstBinding = 9u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_7; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(534ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3165ull)); descriptorWrites[11u].dstBinding = 10u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_8; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(44ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3165ull)); descriptorWrites[12u].dstBinding = 11u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_9; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 13u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.927 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3989ull)), app.GetResource(DescriptorSetID(3165ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4970752u, 4971008u, 4971776u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(46ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.928 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 514560ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.929 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 509696ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.930 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2376u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.932 ms app.vkCmdSetDepthBounds( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*minDepthBounds*/ 0.006197f, /*maxDepthBounds*/ 1.000000f ); // 16.936 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3989ull)), app.GetResource(DescriptorSetID(3165ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4972032u, 4972288u, 4971776u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(46ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.937 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 514560ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.938 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 509696ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.939 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2376u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.940 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(18ull)) ); // 16.942 ms app.vkCmdSetDepthBounds( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*minDepthBounds*/ 0.006632f, /*maxDepthBounds*/ 1.000000f ); // 16.943 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(41ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(281ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(676ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(83ull)) = descriptorSets[1u]; } // 16.944 ms { VkWriteDescriptorSet descriptorWrites[13u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 176ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(676ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 608ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(83ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(83ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(158ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(83ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(555ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(83ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(83ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_2; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(83ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_3; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(358ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(83ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_4; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(548ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(83ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_5; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(296ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(83ull)); descriptorWrites[9u].dstBinding = 8u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_6; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(549ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(83ull)); descriptorWrites[10u].dstBinding = 9u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_7; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(534ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(83ull)); descriptorWrites[11u].dstBinding = 10u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_8; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(44ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(83ull)); descriptorWrites[12u].dstBinding = 11u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_9; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 13u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.945 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(676ull)), app.GetResource(DescriptorSetID(83ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4973056u, 4973312u, 4974080u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(46ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.946 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 514560ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.947 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 509696ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 16.948 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 2376u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 16.949 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass42 (const VApp &app) { // 16.954 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(38ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(54ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 64u, 64u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 16.956 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(66ull)) ); // 16.960 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3090ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5731ull)) = descriptorSets[1u]; } // 16.962 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3090ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3090ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 256ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5731ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5731ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(507ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5731ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.963 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 8.000000f; viewports[0u].y = 43.000000f; viewports[0u].width = 28.000000f; viewports[0u].height = 21.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 16.964 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 8, 43 }; scissors[0u].extent = { 28u, 21u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 16.965 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3090ull)), app.GetResource(DescriptorSetID(5731ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4974336u, 4974592u, 4974848u, 4975104u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.966 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.967 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 28u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 16.969 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(840ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7818ull)) = descriptorSets[1u]; } // 16.970 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(840ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(840ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 256ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7818ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7818ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(508ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7818ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.971 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 23.000000f; viewports[0u].y = 37.000000f; viewports[0u].width = 28.000000f; viewports[0u].height = 27.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 16.972 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 23, 37 }; scissors[0u].extent = { 28u, 27u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 16.973 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(840ull)), app.GetResource(DescriptorSetID(7818ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4975360u, 4975616u, 4975872u, 4975104u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.974 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.974 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 28u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 16.981 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7267ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2918ull)) = descriptorSets[1u]; } // 16.983 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7267ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7267ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 256ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2918ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2918ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(60ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2918ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 16.986 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 4.000000f; viewports[0u].y = 40.000000f; viewports[0u].width = 28.000000f; viewports[0u].height = 24.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 16.988 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 4, 40 }; scissors[0u].extent = { 28u, 24u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 16.989 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7267ull)), app.GetResource(DescriptorSetID(2918ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4976128u, 4976384u, 4976640u, 4975104u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 16.991 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 16.992 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 27u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 16.995 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(13ull)) ); // 17.002 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7819ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7821ull)) = descriptorSets[1u]; } // 17.004 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7819ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7819ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 240ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7821ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7821ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(460ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7821ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.006 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 27.000000f; viewports[0u].y = 29.000000f; viewports[0u].width = 31.000000f; viewports[0u].height = 31.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.007 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 27, 29 }; scissors[0u].extent = { 31u, 31u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.009 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7819ull)), app.GetResource(DescriptorSetID(7821ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4976896u, 4977152u, 4977408u, 4977664u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.010 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.014 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 31u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.016 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(66ull)) ); // 17.020 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(962ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7822ull)) = descriptorSets[1u]; } // 17.021 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(962ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(962ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 256ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7822ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7822ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(417ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7822ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.023 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 27.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 37.000000f; viewports[0u].height = 36.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.024 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 27, 0 }; scissors[0u].extent = { 37u, 36u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.025 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(962ull)), app.GetResource(DescriptorSetID(7822ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4977920u, 4978176u, 4978432u, 4978688u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.026 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.027 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 41u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.028 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7786ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3927ull)) = descriptorSets[1u]; } // 17.030 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7786ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7786ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 256ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3927ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3927ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(510ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3927ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.032 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 46.000000f; viewports[0u].y = 29.000000f; viewports[0u].width = 14.000000f; viewports[0u].height = 14.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.033 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 46, 29 }; scissors[0u].extent = { 14u, 14u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.034 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7786ull)), app.GetResource(DescriptorSetID(3927ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4978944u, 4979200u, 4979456u, 4978688u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.035 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.036 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 14u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.038 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2905ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5922ull)) = descriptorSets[1u]; } // 17.039 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2905ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2905ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 256ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5922ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5922ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(74ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5922ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.187 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 40.000000f; viewports[0u].width = 20.000000f; viewports[0u].height = 24.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.194 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 40 }; scissors[0u].extent = { 20u, 24u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.198 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2905ull)), app.GetResource(DescriptorSetID(5922ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4979712u, 4979968u, 4980224u, 4978688u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.203 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.208 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 28u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.213 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(13ull)) ); // 17.223 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7823ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7677ull)) = descriptorSets[1u]; } // 17.230 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7823ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7823ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 240ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7677ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7677ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(499ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7677ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.235 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 12.000000f; viewports[0u].y = 26.000000f; viewports[0u].width = 23.000000f; viewports[0u].height = 23.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.240 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 12, 26 }; scissors[0u].extent = { 23u, 23u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.246 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7823ull)), app.GetResource(DescriptorSetID(7677ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4980480u, 4980736u, 4980992u, 4981248u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.257 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.266 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 24u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.277 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4737ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7826ull)) = descriptorSets[1u]; } // 17.284 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4737ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4737ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 240ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7826ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7826ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(503ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7826ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.286 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 36.000000f; viewports[0u].width = 50.000000f; viewports[0u].height = 28.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.287 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 36 }; scissors[0u].extent = { 50u, 28u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.288 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4737ull)), app.GetResource(DescriptorSetID(7826ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4981504u, 4981760u, 4982016u, 4981248u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.290 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.291 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 44u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.294 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7829ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7832ull)) = descriptorSets[1u]; } // 17.296 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7829ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7829ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 240ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7832ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7832ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(502ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7832ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.298 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 3.000000f; viewports[0u].y = 29.000000f; viewports[0u].width = 58.000000f; viewports[0u].height = 35.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.300 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 3, 29 }; scissors[0u].extent = { 58u, 35u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.301 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7829ull)), app.GetResource(DescriptorSetID(7832ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4982272u, 4981760u, 4982528u, 4981248u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.303 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.304 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 44u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.305 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass43 (const VApp &app) { // 17.320 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(38ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(56ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 64u, 64u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 17.323 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(66ull)) ); // 17.326 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1929ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7833ull)) = descriptorSets[1u]; } // 17.327 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1929ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1929ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 256ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7833ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7833ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(507ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7833ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.329 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 34.000000f; viewports[0u].y = 46.000000f; viewports[0u].width = 9.000000f; viewports[0u].height = 9.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.330 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 34, 46 }; scissors[0u].extent = { 9u, 9u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.331 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1929ull)), app.GetResource(DescriptorSetID(7833ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4982784u, 4983040u, 4983296u, 4983552u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.332 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.332 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 9u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.334 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7834ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7835ull)) = descriptorSets[1u]; } // 17.335 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7834ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7834ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 256ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7835ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7835ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(508ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7835ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.336 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 38.000000f; viewports[0u].y = 44.000000f; viewports[0u].width = 9.000000f; viewports[0u].height = 9.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.337 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 38, 44 }; scissors[0u].extent = { 9u, 9u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.338 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7834ull)), app.GetResource(DescriptorSetID(7835ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4983808u, 4984064u, 4984320u, 4983552u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.338 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.339 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 9u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.347 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7836ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7837ull)) = descriptorSets[1u]; } // 17.348 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7836ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7836ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 256ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7837ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7837ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(60ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7837ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.349 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 32.000000f; viewports[0u].y = 44.000000f; viewports[0u].width = 9.000000f; viewports[0u].height = 9.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.350 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 32, 44 }; scissors[0u].extent = { 9u, 9u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.351 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7836ull)), app.GetResource(DescriptorSetID(7837ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4984576u, 4984832u, 4985088u, 4983552u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.351 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.352 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 9u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.353 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(13ull)) ); // 17.355 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2820ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5747ull)) = descriptorSets[1u]; } // 17.357 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2820ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2820ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 240ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5747ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5747ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(460ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5747ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.360 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 39.000000f; viewports[0u].y = 41.000000f; viewports[0u].width = 10.000000f; viewports[0u].height = 10.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.362 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 39, 41 }; scissors[0u].extent = { 10u, 10u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.363 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2820ull)), app.GetResource(DescriptorSetID(5747ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4985344u, 4985600u, 4985856u, 4986112u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.364 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.365 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 10u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.367 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(66ull)) ); // 17.370 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2929ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7838ull)) = descriptorSets[1u]; } // 17.372 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2929ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2929ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 256ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7838ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7838ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(417ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7838ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.374 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 39.000000f; viewports[0u].y = 31.000000f; viewports[0u].width = 13.000000f; viewports[0u].height = 13.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.375 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 39, 31 }; scissors[0u].extent = { 13u, 13u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.376 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2929ull)), app.GetResource(DescriptorSetID(7838ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4986368u, 4986624u, 4986880u, 4987136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.377 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.379 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 13u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.384 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(158ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4244ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7839ull)) = descriptorSets[1u]; } // 17.387 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4244ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4244ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 256ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7839ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7839ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(510ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7839ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.388 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 45.000000f; viewports[0u].y = 41.000000f; viewports[0u].width = 5.000000f; viewports[0u].height = 5.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.389 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 45, 41 }; scissors[0u].extent = { 5u, 5u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.390 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4244ull)), app.GetResource(DescriptorSetID(7839ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4987392u, 4987648u, 4987904u, 4987136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.391 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.392 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 5u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.395 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(282ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7843ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3631ull)) = descriptorSets[1u]; } // 17.397 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7843ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7843ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 256ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3631ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3631ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(74ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3631ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.398 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 29.000000f; viewports[0u].y = 44.000000f; viewports[0u].width = 9.000000f; viewports[0u].height = 9.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.399 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 29, 44 }; scissors[0u].extent = { 9u, 9u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.400 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7843ull)), app.GetResource(DescriptorSetID(3631ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4988160u, 4988416u, 4988672u, 4987136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.400 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.401 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 9u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.402 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(13ull)) ); // 17.410 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(282ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7845ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7280ull)) = descriptorSets[1u]; } // 17.411 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7845ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7845ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 240ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7280ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7280ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(499ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7280ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.412 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 35.000000f; viewports[0u].y = 40.000000f; viewports[0u].width = 7.000000f; viewports[0u].height = 8.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.413 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 35, 40 }; scissors[0u].extent = { 7u, 8u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.413 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7845ull)), app.GetResource(DescriptorSetID(7280ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4988928u, 4989184u, 4989440u, 4989696u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.414 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.415 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 8u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.417 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(282ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7846ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7847ull)) = descriptorSets[1u]; } // 17.418 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7846ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7846ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 240ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7847ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7847ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(503ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7847ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.419 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 29.000000f; viewports[0u].y = 43.000000f; viewports[0u].width = 18.000000f; viewports[0u].height = 18.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.420 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 29, 43 }; scissors[0u].extent = { 18u, 18u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.420 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7846ull)), app.GetResource(DescriptorSetID(7847ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4989952u, 4990208u, 4990464u, 4989696u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.421 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.422 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 18u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.424 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(282ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7462ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3013ull)) = descriptorSets[1u]; } // 17.425 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7462ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7462ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 240ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3013ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3013ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(502ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3013ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.426 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 32.000000f; viewports[0u].y = 41.000000f; viewports[0u].width = 18.000000f; viewports[0u].height = 18.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.426 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 32, 41 }; scissors[0u].extent = { 18u, 18u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.428 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7462ull)), app.GetResource(DescriptorSetID(3013ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4990720u, 4990208u, 4990976u, 4989696u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.429 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.430 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 18u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.433 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass44 (const VApp &app) { // 17.484 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(38ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(58ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 64u, 64u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 17.490 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(62ull)) ); // 17.502 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(42ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(151ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5679ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3376ull)) = descriptorSets[1u]; } // 17.508 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5679ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5679ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 16ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3376ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(535ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3376ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3376ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.512 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 64.000000f; viewports[0u].height = 64.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.514 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 64u, 64u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.516 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5679ull)), app.GetResource(DescriptorSetID(3376ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4991232u, 4991488u, 4991744u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(7ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.522 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.524 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 64u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.526 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass45 (const VApp &app) { // 17.545 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(38ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(54ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 64u, 64u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 17.554 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(42ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(151ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5690ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5691ull)) = descriptorSets[1u]; } // 17.557 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5690ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5690ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 16ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5691ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(132ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5691ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(536ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5691ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.560 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5690ull)), app.GetResource(DescriptorSetID(5691ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4991232u, 4991488u, 4991744u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(7ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.562 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.564 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 64u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 17.566 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass46 (const VApp &app) { // 17.598 ms { VkClearValue clearValues[1u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(3ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(59ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 1u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 17.623 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(76ull)) ); // 17.670 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(3ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(286ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7903ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(948ull)) = descriptorSets[1u]; } // 17.692 ms { VkWriteDescriptorSet descriptorWrites[11u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7903ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 416ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(948ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 16ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(948ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(556ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(948ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(28ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(948ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(89ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(948ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_2; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(948ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_3; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(948ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_4; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(358ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(948ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_5; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(548ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(948ull)); descriptorWrites[9u].dstBinding = 8u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_6; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(296ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(948ull)); descriptorWrites[10u].dstBinding = 9u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_7; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 11u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.704 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 2194.000000f; viewports[0u].height = 934.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 17.708 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 2194u, 934u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 17.710 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7903ull)), app.GetResource(DescriptorSetID(948ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4992000u, 4992256u, 4992768u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(52ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.720 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.723 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 17.727 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 17.730 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass47 (const VApp &app) { // 17.777 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(20ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(53ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 17.790 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(130ull)) ); // 17.938 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(64ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(110ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7905ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7906ull)) = descriptorSets[1u]; } // 17.957 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(736ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(437ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7905ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16624ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7906ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 16ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7906ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 48ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7906ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7906ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7906ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = texelBufferView_1; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(564ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7906ull)); descriptorWrites[6u].dstBinding = 5u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(106ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7906ull)); descriptorWrites[7u].dstBinding = 6u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_1; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(632ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7906ull)); descriptorWrites[8u].dstBinding = 7u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_2; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7906ull)); descriptorWrites[9u].dstBinding = 8u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_3; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7906ull)); descriptorWrites[10u].dstBinding = 9u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_4; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(358ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7906ull)); descriptorWrites[11u].dstBinding = 10u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_5; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(548ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7906ull)); descriptorWrites[12u].dstBinding = 11u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_6; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(296ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7906ull)); descriptorWrites[13u].dstBinding = 12u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_7; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(534ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7906ull)); descriptorWrites[14u].dstBinding = 13u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_8; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 17.977 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7905ull)), app.GetResource(DescriptorSetID(7906ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 4993024u, 4993280u, 5009920u, 5010176u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(74ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 17.986 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 17.992 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 17.995 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 17.998 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass48 (const VApp &app) { // 18.118 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(20ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(53ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 18.127 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(331ull)), /*query*/ 3u ); // 18.130 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(331ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5042ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 18.134 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(331ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 18.142 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(1ull)) ); // 18.162 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(42ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(148ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5572ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5669ull)) = descriptorSets[1u]; } // 18.176 ms { VkWriteDescriptorSet descriptorWrites[4u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 80ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5572ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 112ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5669ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(44ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5669ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5669ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 4u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.181 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5572ull)), app.GetResource(DescriptorSetID(5669ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010432u, 5010688u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(42ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.187 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 494592ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.190 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 494848ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.193 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.195 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(332ull)), /*query*/ 3u ); // 18.197 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(332ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5043ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 18.201 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(332ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 18.204 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass49 (const VApp &app) { // 18.273 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(12ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(26ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1024u, 1024u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 18.300 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(333ull)), /*query*/ 3u ); // 18.305 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(333ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5044ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 18.309 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(333ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 18.320 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(74ull)) ); // 18.361 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7907ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4867ull)) = descriptorSets[1u]; } // 18.365 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(738ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7907ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7907ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4867ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4867ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4867ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4867ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4867ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4867ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4867ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4867ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4867ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4867ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(4867ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(4867ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(4867ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.373 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 1024.000000f; viewports[0u].height = 1024.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 18.376 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 1024u, 1024u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 18.378 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7907ull)), app.GetResource(DescriptorSetID(4867ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5011200u, 5012736u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.381 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.382 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.384 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.399 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4564ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2873ull)) = descriptorSets[1u]; } // 18.402 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(192ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4564ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4564ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2873ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2873ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2873ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2873ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2873ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2873ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2873ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2873ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2873ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2873ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(2873ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(2873ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(2873ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.404 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4564ull)), app.GetResource(DescriptorSetID(2873ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5012992u, 5012736u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.406 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.407 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.408 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.413 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7868ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7908ull)) = descriptorSets[1u]; } // 18.415 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(549ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7868ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7868ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7908ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7908ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7908ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7908ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7908ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7908ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7908ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7908ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7908ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7908ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7908ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7908ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7908ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.418 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7868ull)), app.GetResource(DescriptorSetID(7908ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5014528u, 5016064u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.419 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.420 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.421 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.431 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3501ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1977ull)) = descriptorSets[1u]; } // 18.435 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(551ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3501ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3501ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1977ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1977ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1977ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1977ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1977ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1977ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1977ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1977ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1977ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1977ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(1977ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(1977ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(1977ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.438 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3501ull)), app.GetResource(DescriptorSetID(1977ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5016320u, 5016064u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.439 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.440 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.441 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 13u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.447 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2589ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(429ull)) = descriptorSets[1u]; } // 18.449 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(110ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2589ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2589ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(429ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(429ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(429ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(429ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(429ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(429ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(429ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(429ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(429ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(429ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(429ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(429ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(429ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.451 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2589ull)), app.GetResource(DescriptorSetID(429ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5017856u, 5016064u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.452 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.454 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.454 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.458 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1705ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7910ull)) = descriptorSets[1u]; } // 18.460 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(326ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1705ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1705ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7910ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7910ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7910ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7910ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7910ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7910ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7910ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7910ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7910ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7910ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7910ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7910ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7910ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.462 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1705ull)), app.GetResource(DescriptorSetID(7910ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5019392u, 5016064u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.463 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.464 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.466 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 13u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.475 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7913ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7915ull)) = descriptorSets[1u]; } // 18.477 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(160ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7913ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7913ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7915ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7915ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7915ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7915ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7915ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7915ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7915ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7915ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7915ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7915ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7915ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7915ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7915ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.480 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7913ull)), app.GetResource(DescriptorSetID(7915ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5020928u, 5016064u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.481 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.482 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.484 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 194u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.489 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5205ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(6002ull)) = descriptorSets[1u]; } // 18.492 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(337ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5205ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5205ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(6002ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(6002ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(6002ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(6002ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(6002ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(6002ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(6002ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(6002ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(6002ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(6002ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(6002ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(6002ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(6002ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.494 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5205ull)), app.GetResource(DescriptorSetID(6002ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5022464u, 5024000u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.496 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.497 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.498 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.505 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(6936ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7916ull)) = descriptorSets[1u]; } // 18.507 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(554ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(6936ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(6936ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7916ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7916ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7916ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7916ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7916ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7916ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7916ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7916ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7916ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7916ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7916ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7916ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7916ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.509 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6936ull)), app.GetResource(DescriptorSetID(7916ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5024256u, 5024000u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.511 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.512 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.513 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 13u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.522 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7917ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2317ull)) = descriptorSets[1u]; } // 18.524 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(556ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7917ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7917ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2317ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2317ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2317ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2317ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2317ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2317ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2317ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2317ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2317ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2317ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(2317ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(2317ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(2317ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.527 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7917ull)), app.GetResource(DescriptorSetID(2317ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5025792u, 5024000u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.528 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.529 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.530 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.534 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7042ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7918ull)) = descriptorSets[1u]; } // 18.536 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(559ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7042ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7042ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7918ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7918ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7918ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7918ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7918ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7918ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7918ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7918ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7918ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7918ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7918ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7918ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7918ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.538 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7042ull)), app.GetResource(DescriptorSetID(7918ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5027328u, 5028864u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.540 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.541 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.542 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 13u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.550 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7406ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(6479ull)) = descriptorSets[1u]; } // 18.556 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(560ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7406ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7406ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(6479ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(6479ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(6479ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(6479ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(6479ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(6479ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(6479ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(6479ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(6479ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(6479ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(6479ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(6479ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(6479ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.802 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7406ull)), app.GetResource(DescriptorSetID(6479ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5029120u, 5028864u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.810 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.816 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.820 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 13u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.831 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7921ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(297ull)) = descriptorSets[1u]; } // 18.837 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(520ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7921ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7921ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(297ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(297ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(297ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(297ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(297ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(297ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(297ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(297ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(297ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(297ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(297ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(297ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(297ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.843 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7921ull)), app.GetResource(DescriptorSetID(297ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5030656u, 5028864u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.850 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.857 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.864 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.874 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7923ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5977ull)) = descriptorSets[1u]; } // 18.891 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(425ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7923ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7923ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5977ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5977ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5977ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5977ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5977ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5977ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5977ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5977ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5977ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5977ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5977ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5977ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5977ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.902 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7923ull)), app.GetResource(DescriptorSetID(5977ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5032192u, 5033728u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.910 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.916 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.923 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 194u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.939 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(354ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7924ull)) = descriptorSets[1u]; } // 18.948 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(739ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(354ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(354ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7924ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7924ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7924ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7924ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7924ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7924ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7924ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7924ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7924ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7924ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7924ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7924ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7924ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.958 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(354ull)), app.GetResource(DescriptorSetID(7924ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5033984u, 5033728u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.963 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 18.968 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 18.973 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 8u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 18.979 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(287ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1276ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7625ull)) = descriptorSets[1u]; } // 18.985 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(740ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1276ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1276ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7625ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7625ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7625ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7625ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7625ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7625ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7625ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7625ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7625ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7625ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7625ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7625ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7625ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 18.991 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1276ull)), app.GetResource(DescriptorSetID(7625ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5035520u, 5033728u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 18.996 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.001 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.006 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 8u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.024 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7925ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2279ull)) = descriptorSets[1u]; } // 19.030 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(710ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7925ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7925ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2279ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2279ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2279ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2279ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2279ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2279ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(456ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2279ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2279ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2279ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2279ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(2279ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(2279ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(2279ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.036 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7925ull)), app.GetResource(DescriptorSetID(2279ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5037056u, 5038592u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.041 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.046 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.050 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 4u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.057 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7791ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5367ull)) = descriptorSets[1u]; } // 19.063 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1046ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7791ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7791ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5367ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5367ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5367ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5367ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5367ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5367ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(272ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5367ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5367ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5367ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5367ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5367ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5367ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5367ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.069 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7791ull)), app.GetResource(DescriptorSetID(5367ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5038848u, 5038592u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.074 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.079 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.083 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 7u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.090 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(277ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4606ull)) = descriptorSets[1u]; } // 19.096 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(164ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(277ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(277ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4606ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4606ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4606ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4606ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4606ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4606ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(272ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4606ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4606ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4606ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4606ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(4606ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(4606ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(4606ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.101 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(277ull)), app.GetResource(DescriptorSetID(4606ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5040384u, 5038592u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.106 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.112 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.122 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 4u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.138 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7927ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7928ull)) = descriptorSets[1u]; } // 19.145 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1047ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7927ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7927ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7928ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7928ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7928ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7928ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7928ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7928ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7928ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7928ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7928ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7928ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7928ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7928ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7928ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.151 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7927ull)), app.GetResource(DescriptorSetID(7928ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5041920u, 5043456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.156 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.161 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.166 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 35u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.172 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7929ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7930ull)) = descriptorSets[1u]; } // 19.178 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1026ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7929ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7929ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7930ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7930ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7930ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7930ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7930ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7930ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7930ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7930ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7930ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7930ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7930ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7930ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7930ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.184 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7929ull)), app.GetResource(DescriptorSetID(7930ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5043712u, 5043456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.189 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.194 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.199 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.209 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7931ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5230ull)) = descriptorSets[1u]; } // 19.216 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(497ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7931ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7931ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5230ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5230ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5230ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5230ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5230ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5230ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5230ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5230ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5230ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5230ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5230ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5230ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5230ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.222 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7931ull)), app.GetResource(DescriptorSetID(5230ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5045248u, 5043456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.227 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.231 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.236 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.247 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7932ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3741ull)) = descriptorSets[1u]; } // 19.265 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(897ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7932ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7932ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3741ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3741ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3741ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3741ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3741ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3741ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3741ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3741ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3741ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3741ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3741ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3741ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3741ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.276 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7932ull)), app.GetResource(DescriptorSetID(3741ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5046784u, 5043456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.281 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.287 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.291 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 28u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.299 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7933ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(6178ull)) = descriptorSets[1u]; } // 19.305 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(244ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7933ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7933ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(6178ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(6178ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(6178ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(6178ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(6178ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(6178ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(6178ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(6178ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(6178ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(6178ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(6178ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(6178ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(6178ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.311 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7933ull)), app.GetResource(DescriptorSetID(6178ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5048320u, 5043456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.316 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.321 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.326 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.339 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7934ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7936ull)) = descriptorSets[1u]; } // 19.347 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1048ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7934ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7934ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7936ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7936ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7936ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7936ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7936ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7936ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7936ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7936ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7936ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7936ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7936ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7936ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7936ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.353 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7934ull)), app.GetResource(DescriptorSetID(7936ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5049856u, 5043456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.358 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.363 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.368 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 35u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.375 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2236ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1930ull)) = descriptorSets[1u]; } // 19.381 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1027ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2236ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2236ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1930ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1930ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1930ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1930ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1930ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1930ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1930ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1930ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1930ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1930ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(1930ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(1930ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(1930ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.387 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2236ull)), app.GetResource(DescriptorSetID(1930ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5051392u, 5043456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.392 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.397 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.401 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.408 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7937ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7938ull)) = descriptorSets[1u]; } // 19.414 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(179ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7937ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7937ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7938ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7938ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7938ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7938ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7938ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7938ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7938ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7938ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7938ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7938ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7938ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7938ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7938ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.420 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7937ull)), app.GetResource(DescriptorSetID(7938ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5052928u, 5043456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.425 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.429 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.434 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.444 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7939ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7940ull)) = descriptorSets[1u]; } // 19.451 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1049ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7939ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7939ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7940ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7940ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7940ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7940ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7940ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7940ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7940ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7940ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7940ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7940ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7940ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7940ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7940ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.457 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7939ull)), app.GetResource(DescriptorSetID(7940ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5054464u, 5043456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.462 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.467 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.472 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 28u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.478 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7941ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7942ull)) = descriptorSets[1u]; } // 19.484 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(317ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7941ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7941ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7942ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7942ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7942ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7942ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7942ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7942ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7942ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7942ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7942ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7942ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7942ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7942ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7942ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.490 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7941ull)), app.GetResource(DescriptorSetID(7942ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5056000u, 5043456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.495 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.500 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.504 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.515 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7944ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2742ull)) = descriptorSets[1u]; } // 19.521 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1050ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7944ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7944ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2742ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2742ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2742ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2742ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2742ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2742ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2742ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2742ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2742ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2742ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(2742ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(2742ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(2742ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.527 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7944ull)), app.GetResource(DescriptorSetID(2742ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5057536u, 5043456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.532 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.537 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.545 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 35u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.551 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7945ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3903ull)) = descriptorSets[1u]; } // 19.557 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1031ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7945ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7945ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3903ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3903ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3903ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3903ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3903ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3903ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3903ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3903ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3903ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3903ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3903ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3903ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3903ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.563 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7945ull)), app.GetResource(DescriptorSetID(3903ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5059072u, 5043456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.568 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.573 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.578 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.584 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4148ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7946ull)) = descriptorSets[1u]; } // 19.590 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(252ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4148ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4148ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7946ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7946ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7946ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7946ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7946ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7946ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7946ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7946ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7946ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7946ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7946ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7946ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7946ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.596 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4148ull)), app.GetResource(DescriptorSetID(7946ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5060608u, 5043456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.601 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.606 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.610 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.621 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(665ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7947ull)) = descriptorSets[1u]; } // 19.628 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1051ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(665ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(665ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7947ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7947ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7947ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7947ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7947ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7947ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7947ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7947ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7947ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7947ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7947ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7947ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7947ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.634 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(665ull)), app.GetResource(DescriptorSetID(7947ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5062144u, 5043456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.639 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.644 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.649 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 28u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.655 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7948ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7949ull)) = descriptorSets[1u]; } // 19.661 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(715ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7948ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7948ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7949ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7949ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7949ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7949ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7949ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7949ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7949ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7949ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7949ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7949ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7949ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7949ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7949ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.667 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7948ull)), app.GetResource(DescriptorSetID(7949ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5063680u, 5043456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.672 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.677 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.682 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.693 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7951ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(617ull)) = descriptorSets[1u]; } // 19.700 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(751ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7951ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7951ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(617ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(617ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(617ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(617ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(617ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(617ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(617ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(617ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(617ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(617ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(617ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(617ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(617ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.706 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7951ull)), app.GetResource(DescriptorSetID(617ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5065216u, 5066752u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.710 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.716 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.720 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.727 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4861ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3987ull)) = descriptorSets[1u]; } // 19.733 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(5ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4861ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4861ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3987ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3987ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3987ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3987ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3987ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3987ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3987ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3987ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3987ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3987ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3987ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3987ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3987ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.739 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4861ull)), app.GetResource(DescriptorSetID(3987ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5067008u, 5066752u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.744 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.749 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.754 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.761 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7952ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4247ull)) = descriptorSets[1u]; } // 19.767 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(25ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7952ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7952ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4247ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4247ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4247ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4247ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4247ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4247ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4247ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4247ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4247ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4247ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(4247ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(4247ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(4247ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.772 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7952ull)), app.GetResource(DescriptorSetID(4247ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5068544u, 5066752u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.777 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.783 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.788 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.799 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7953ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7955ull)) = descriptorSets[1u]; } // 19.805 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(501ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7953ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7953ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7955ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7955ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7955ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7955ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7955ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7955ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7955ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7955ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7955ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7955ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7955ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7955ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7955ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.811 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7953ull)), app.GetResource(DescriptorSetID(7955ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5070080u, 5071616u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.817 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.822 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.826 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.833 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7956ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7958ull)) = descriptorSets[1u]; } // 19.838 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(168ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7956ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7956ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7958ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7958ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7958ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7958ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7958ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7958ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7958ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7958ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7958ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7958ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7958ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7958ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7958ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.844 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7956ull)), app.GetResource(DescriptorSetID(7958ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5071872u, 5071616u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.849 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.854 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.859 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 26u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.866 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1382ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7959ull)) = descriptorSets[1u]; } // 19.872 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1052ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1382ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1382ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7959ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7959ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7959ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7959ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7959ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7959ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7959ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7959ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7959ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7959ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7959ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7959ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7959ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.877 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1382ull)), app.GetResource(DescriptorSetID(7959ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5073408u, 5071616u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.882 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.887 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.892 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 51u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.902 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7178ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5061ull)) = descriptorSets[1u]; } // 19.909 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1033ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7178ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7178ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5061ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5061ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5061ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5061ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5061ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5061ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5061ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5061ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5061ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5061ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5061ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5061ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5061ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.915 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7178ull)), app.GetResource(DescriptorSetID(5061ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5074944u, 5071616u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.920 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.925 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.930 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 28u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.936 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1193ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7960ull)) = descriptorSets[1u]; } // 19.942 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1034ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1193ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1193ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7960ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7960ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7960ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7960ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7960ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7960ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7960ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7960ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7960ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7960ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7960ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7960ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7960ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.949 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1193ull)), app.GetResource(DescriptorSetID(7960ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5076480u, 5071616u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.954 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 19.958 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 19.963 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 26u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 19.974 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7600ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4556ull)) = descriptorSets[1u]; } // 19.981 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(93ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7600ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7600ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4556ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4556ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4556ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4556ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4556ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4556ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4556ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4556ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4556ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4556ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(4556ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(4556ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(4556ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 19.987 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7600ull)), app.GetResource(DescriptorSetID(4556ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5078016u, 5071616u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 19.994 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.004 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.013 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 36u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.020 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3335ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7827ull)) = descriptorSets[1u]; } // 20.026 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(914ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3335ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3335ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7827ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7827ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7827ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7827ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7827ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7827ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7827ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7827ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7827ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7827ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7827ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7827ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7827ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.032 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3335ull)), app.GetResource(DescriptorSetID(7827ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5079552u, 5071616u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.037 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.042 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.047 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.053 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4552ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4559ull)) = descriptorSets[1u]; } // 20.058 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(232ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4552ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4552ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4559ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4559ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4559ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4559ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4559ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4559ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4559ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4559ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4559ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4559ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(4559ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(4559ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(4559ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.064 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4552ull)), app.GetResource(DescriptorSetID(4559ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5081088u, 5071616u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.069 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.074 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.079 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.089 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7241ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5184ull)) = descriptorSets[1u]; } // 20.096 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1053ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7241ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7241ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5184ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5184ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5184ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5184ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5184ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5184ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5184ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5184ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5184ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5184ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5184ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5184ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5184ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.102 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7241ull)), app.GetResource(DescriptorSetID(5184ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5082624u, 5071616u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.107 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.112 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.116 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 29u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.123 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(6303ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7638ull)) = descriptorSets[1u]; } // 20.128 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(814ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(6303ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(6303ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7638ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7638ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7638ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7638ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7638ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7638ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7638ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7638ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7638ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7638ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7638ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7638ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7638ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.134 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6303ull)), app.GetResource(DescriptorSetID(7638ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5084160u, 5071616u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.139 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.144 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.149 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.159 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(80ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7961ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4280ull)) = descriptorSets[1u]; } // 20.166 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(647ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7961ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7961ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4280ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4280ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4280ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4280ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4280ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4280ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4280ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4280ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4280ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4280ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(4280ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(4280ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(4280ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.171 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7961ull)), app.GetResource(DescriptorSetID(4280ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5085696u, 5087232u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.176 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.181 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.186 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.198 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7964ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7966ull)) = descriptorSets[1u]; } // 20.204 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(758ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7964ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7964ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7966ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7966ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7966ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7966ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7966ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7966ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7966ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7966ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7966ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7966ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7966ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7966ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7966ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.209 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7964ull)), app.GetResource(DescriptorSetID(7966ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5087488u, 5087232u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.214 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.219 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.224 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.230 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7967ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3751ull)) = descriptorSets[1u]; } // 20.237 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(446ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7967ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7967ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3751ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3751ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3751ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3751ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3751ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3751ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3751ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3751ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3751ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3751ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3751ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3751ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3751ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.243 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7967ull)), app.GetResource(DescriptorSetID(3751ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5089024u, 5090560u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.248 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.253 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.257 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 8u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.268 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7968ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7969ull)) = descriptorSets[1u]; } // 20.275 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(628ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7968ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7968ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7969ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7969ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7969ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7969ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7969ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7969ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7969ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7969ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7969ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7969ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7969ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7969ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7969ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.281 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7968ull)), app.GetResource(DescriptorSetID(7969ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5090816u, 5092352u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.286 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.291 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.296 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.302 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7971ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7973ull)) = descriptorSets[1u]; } // 20.308 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(119ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7971ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7971ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7973ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7973ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7973ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7973ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7973ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7973ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7973ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7973ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7973ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7973ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7973ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7973ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7973ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.314 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7971ull)), app.GetResource(DescriptorSetID(7973ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5092608u, 5092352u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.318 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.323 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.328 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.339 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5748ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2781ull)) = descriptorSets[1u]; } // 20.345 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(307ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5748ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5748ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2781ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2781ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2781ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2781ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2781ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2781ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2781ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2781ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2781ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2781ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(2781ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(2781ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(2781ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.351 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5748ull)), app.GetResource(DescriptorSetID(2781ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5094144u, 5095680u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.356 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.361 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.366 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.372 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2447ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5474ull)) = descriptorSets[1u]; } // 20.378 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(591ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2447ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2447ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5474ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5474ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5474ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5474ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5474ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5474ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5474ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5474ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5474ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5474ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5474ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5474ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5474ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.384 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2447ull)), app.GetResource(DescriptorSetID(5474ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5095936u, 5095680u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.389 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.393 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.398 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 13u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.405 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7974ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7975ull)) = descriptorSets[1u]; } // 20.411 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(594ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7974ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7974ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7975ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7975ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7975ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7975ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7975ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7975ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7975ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7975ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7975ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7975ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7975ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7975ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7975ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.416 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7974ull)), app.GetResource(DescriptorSetID(7975ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5097472u, 5095680u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.421 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.426 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.430 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.441 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5076ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5373ull)) = descriptorSets[1u]; } // 20.448 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(595ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5076ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5076ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5373ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5373ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5373ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5373ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5373ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5373ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5373ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5373ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5373ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5373ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5373ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5373ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5373ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.454 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5076ull)), app.GetResource(DescriptorSetID(5373ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5099008u, 5095680u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.459 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.464 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.469 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 13u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.476 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4161ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2739ull)) = descriptorSets[1u]; } // 20.482 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(505ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4161ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4161ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2739ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2739ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2739ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2739ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2739ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2739ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2739ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2739ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2739ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2739ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(2739ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(2739ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(2739ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.487 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4161ull)), app.GetResource(DescriptorSetID(2739ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5010944u, 5100544u, 5095680u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.492 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.497 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.502 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 194u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.507 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(78ull)), /*query*/ 3u ); // 20.513 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(78ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(3610ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 20.519 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(78ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 20.525 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass50 (const VApp &app) { // 20.566 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(14ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(29ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1024u, 1024u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 20.638 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(10ull)) ); // 20.649 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(162ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(9607ull)) = descriptorSets[0u]; } // 20.656 ms { VkWriteDescriptorSet descriptorWrites[1u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(9607ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 1u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.662 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(9607ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 5102080u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.667 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(40ull)), app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 256ull, 493312ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.673 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.678 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 910u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.707 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(9607ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 5102080u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(6ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.714 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(40ull)), app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 65792ull, 493312ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.719 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.723 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 423u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.728 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass51 (const VApp &app) { // 20.777 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(12ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(28ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1024u, 1024u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 20.784 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(334ull)), /*query*/ 3u ); // 20.789 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(334ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5047ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 20.794 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(334ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 20.799 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(74ull)) ); // 20.816 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7976ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7978ull)) = descriptorSets[1u]; } // 20.823 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(738ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7976ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7976ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7978ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7978ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7978ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7978ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7978ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7978ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7978ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7978ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7978ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7978ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7978ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7978ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7978ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.829 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7976ull)), app.GetResource(DescriptorSetID(7978ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5102592u, 5104128u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.834 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.839 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.844 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.850 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7979ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7981ull)) = descriptorSets[1u]; } // 20.856 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(192ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7979ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7979ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7981ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7981ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7981ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7981ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7981ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7981ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7981ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7981ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7981ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7981ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7981ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7981ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7981ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.862 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7979ull)), app.GetResource(DescriptorSetID(7981ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5104384u, 5104128u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.867 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.872 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.877 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.887 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(6979ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(6056ull)) = descriptorSets[1u]; } // 20.897 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(549ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(6979ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(6979ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(6056ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(6056ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(6056ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(6056ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(6056ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(6056ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(6056ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(6056ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(6056ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(6056ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(6056ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(6056ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(6056ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.903 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6979ull)), app.GetResource(DescriptorSetID(6056ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5105920u, 5107456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.908 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.913 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.917 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.928 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7982ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3467ull)) = descriptorSets[1u]; } // 20.935 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(551ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7982ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7982ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3467ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3467ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3467ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3467ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3467ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3467ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3467ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3467ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3467ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3467ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3467ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3467ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3467ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.941 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7982ull)), app.GetResource(DescriptorSetID(3467ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5107712u, 5107456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.946 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.951 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.955 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 13u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.962 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7985ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7880ull)) = descriptorSets[1u]; } // 20.968 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(110ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7985ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7985ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7880ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7880ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7880ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7880ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7880ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7880ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7880ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7880ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7880ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7880ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7880ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7880ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7880ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 20.974 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7985ull)), app.GetResource(DescriptorSetID(7880ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5109248u, 5107456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 20.979 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 20.983 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 20.988 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 20.998 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1590ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7986ull)) = descriptorSets[1u]; } // 21.005 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(326ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1590ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1590ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7986ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7986ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7986ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7986ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7986ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7986ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7986ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7986ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7986ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7986ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7986ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7986ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7986ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.011 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1590ull)), app.GetResource(DescriptorSetID(7986ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5110784u, 5107456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.016 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.021 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.026 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 13u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.032 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(6398ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(513ull)) = descriptorSets[1u]; } // 21.038 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(160ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(6398ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(6398ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(513ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(513ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(513ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(513ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(513ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(513ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(513ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(513ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(513ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(513ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(513ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(513ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(513ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.044 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6398ull)), app.GetResource(DescriptorSetID(513ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5112320u, 5107456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.049 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.054 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.059 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 194u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.065 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4177ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7572ull)) = descriptorSets[1u]; } // 21.071 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(337ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4177ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4177ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7572ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7572ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7572ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7572ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7572ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7572ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7572ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7572ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7572ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7572ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7572ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7572ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7572ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.077 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4177ull)), app.GetResource(DescriptorSetID(7572ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5113856u, 5115392u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.082 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.087 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.092 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.102 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7988ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7990ull)) = descriptorSets[1u]; } // 21.109 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(554ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7988ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7988ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7990ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7990ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7990ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7990ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7990ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7990ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7990ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7990ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7990ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7990ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7990ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7990ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7990ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.114 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7988ull)), app.GetResource(DescriptorSetID(7990ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5115648u, 5115392u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.120 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.124 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.129 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 13u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.136 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7991ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7994ull)) = descriptorSets[1u]; } // 21.141 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(556ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7991ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7991ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7994ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7994ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7994ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7994ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7994ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7994ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7994ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7994ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7994ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7994ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7994ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7994ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7994ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.147 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7991ull)), app.GetResource(DescriptorSetID(7994ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5117184u, 5115392u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.151 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.156 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.161 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.171 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5806ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3079ull)) = descriptorSets[1u]; } // 21.178 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(559ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5806ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5806ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3079ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3079ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3079ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3079ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3079ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3079ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3079ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3079ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3079ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3079ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3079ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3079ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3079ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.184 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5806ull)), app.GetResource(DescriptorSetID(3079ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5118720u, 5120256u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.189 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.194 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.199 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 13u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.205 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7996ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1643ull)) = descriptorSets[1u]; } // 21.211 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(560ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7996ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7996ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1643ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1643ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1643ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1643ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1643ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1643ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1643ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1643ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1643ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1643ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(1643ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(1643ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(1643ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.217 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7996ull)), app.GetResource(DescriptorSetID(1643ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5120512u, 5120256u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.222 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.226 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.231 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 13u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.239 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7997ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(6211ull)) = descriptorSets[1u]; } // 21.245 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(520ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7997ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7997ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(6211ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(6211ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(6211ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(6211ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(6211ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(6211ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(6211ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(6211ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(6211ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(6211ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(6211ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(6211ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(6211ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.251 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7997ull)), app.GetResource(DescriptorSetID(6211ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5122048u, 5120256u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.256 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.261 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.266 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.277 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7998ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7999ull)) = descriptorSets[1u]; } // 21.284 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(425ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7998ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7998ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7999ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7999ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7999ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7999ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7999ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7999ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7999ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7999ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7999ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7999ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7999ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7999ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7999ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.290 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7998ull)), app.GetResource(DescriptorSetID(7999ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5123584u, 5125120u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.295 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.300 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.304 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 194u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.311 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4081ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8000ull)) = descriptorSets[1u]; } // 21.316 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(739ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4081ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4081ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8000ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8000ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8000ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8000ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8000ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8000ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8000ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8000ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8000ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8000ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8000ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8000ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8000ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.322 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4081ull)), app.GetResource(DescriptorSetID(8000ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5125376u, 5125120u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.327 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.333 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.338 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 8u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.348 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8001ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4913ull)) = descriptorSets[1u]; } // 21.354 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(740ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8001ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8001ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4913ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4913ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4913ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4913ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4913ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4913ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4913ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4913ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4913ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4913ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(4913ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(4913ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(4913ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.361 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8001ull)), app.GetResource(DescriptorSetID(4913ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5126912u, 5125120u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.366 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.371 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.375 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 8u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.382 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4890ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5832ull)) = descriptorSets[1u]; } // 21.388 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(710ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4890ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4890ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5832ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5832ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5832ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5832ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5832ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5832ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(456ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5832ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5832ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5832ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5832ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5832ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5832ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5832ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.394 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4890ull)), app.GetResource(DescriptorSetID(5832ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5128448u, 5129984u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.399 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.404 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.409 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 4u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.416 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8002ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8003ull)) = descriptorSets[1u]; } // 21.421 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1046ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8002ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8002ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8003ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8003ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8003ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8003ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8003ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8003ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(272ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8003ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8003ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8003ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8003ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8003ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8003ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8003ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.427 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8002ull)), app.GetResource(DescriptorSetID(8003ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5130240u, 5129984u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.433 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.438 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.442 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 7u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.454 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7092ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8004ull)) = descriptorSets[1u]; } // 21.460 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(164ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7092ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7092ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8004ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8004ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8004ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8004ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8004ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8004ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(272ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8004ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8004ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8004ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8004ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8004ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8004ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8004ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.466 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7092ull)), app.GetResource(DescriptorSetID(8004ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5131776u, 5129984u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.471 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.476 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.481 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 4u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.488 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(328ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3464ull)) = descriptorSets[1u]; } // 21.493 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1047ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(328ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(328ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3464ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3464ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3464ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3464ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3464ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3464ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3464ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3464ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3464ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3464ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3464ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3464ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3464ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.499 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(328ull)), app.GetResource(DescriptorSetID(3464ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5133312u, 5134848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.504 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.511 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.517 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 35u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.532 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8005ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8007ull)) = descriptorSets[1u]; } // 21.542 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1026ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8005ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8005ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8007ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8007ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8007ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8007ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8007ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8007ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8007ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8007ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8007ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8007ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8007ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8007ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8007ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.549 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8005ull)), app.GetResource(DescriptorSetID(8007ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5135104u, 5134848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.554 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.559 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.564 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.571 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8008ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8010ull)) = descriptorSets[1u]; } // 21.577 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(497ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8008ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8008ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8010ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8010ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8010ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8010ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8010ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8010ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8010ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8010ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8010ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8010ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8010ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8010ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8010ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.583 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8008ull)), app.GetResource(DescriptorSetID(8010ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5136640u, 5134848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.587 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.592 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.598 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.604 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2316ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(20ull)) = descriptorSets[1u]; } // 21.611 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(897ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2316ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2316ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(20ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(20ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(20ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(20ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(20ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(20ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(20ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(20ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(20ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(20ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(20ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(20ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(20ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.617 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2316ull)), app.GetResource(DescriptorSetID(20ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5138176u, 5134848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.622 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.627 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.632 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 28u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.644 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1421ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8011ull)) = descriptorSets[1u]; } // 21.652 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(244ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1421ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1421ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8011ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8011ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8011ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8011ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8011ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8011ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8011ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8011ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8011ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8011ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8011ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8011ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8011ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.658 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1421ull)), app.GetResource(DescriptorSetID(8011ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5139712u, 5134848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.663 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.669 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.674 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.680 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2199ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8012ull)) = descriptorSets[1u]; } // 21.686 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1048ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2199ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2199ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8012ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8012ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8012ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8012ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8012ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8012ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8012ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8012ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8012ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8012ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8012ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8012ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8012ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.692 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2199ull)), app.GetResource(DescriptorSetID(8012ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5141248u, 5134848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.697 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.705 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.712 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 35u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.722 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8013ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8014ull)) = descriptorSets[1u]; } // 21.731 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1027ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8013ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8013ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8014ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8014ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8014ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8014ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8014ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8014ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8014ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8014ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8014ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8014ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8014ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8014ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8014ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.738 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8013ull)), app.GetResource(DescriptorSetID(8014ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5142784u, 5134848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.743 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.748 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.753 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.768 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7383ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(841ull)) = descriptorSets[1u]; } // 21.781 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(179ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7383ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7383ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(841ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(841ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(841ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(841ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(841ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(841ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(841ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(841ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(841ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(841ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(841ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(841ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(841ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.788 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7383ull)), app.GetResource(DescriptorSetID(841ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5144320u, 5134848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.794 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.799 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.803 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.811 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8016ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8018ull)) = descriptorSets[1u]; } // 21.817 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1049ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8016ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8016ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8018ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8018ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8018ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8018ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8018ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8018ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8018ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8018ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8018ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8018ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8018ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8018ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8018ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.823 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8016ull)), app.GetResource(DescriptorSetID(8018ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5145856u, 5134848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.829 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.834 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.839 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 28u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.850 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3170ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5151ull)) = descriptorSets[1u]; } // 21.857 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(317ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3170ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3170ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5151ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5151ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5151ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5151ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5151ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5151ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5151ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5151ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5151ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5151ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5151ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5151ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5151ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.863 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3170ull)), app.GetResource(DescriptorSetID(5151ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5147392u, 5134848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.868 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.874 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.879 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.885 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3281ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7609ull)) = descriptorSets[1u]; } // 21.891 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1050ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3281ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3281ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7609ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7609ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7609ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7609ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7609ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7609ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7609ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7609ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7609ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7609ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7609ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7609ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7609ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.898 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3281ull)), app.GetResource(DescriptorSetID(7609ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5148928u, 5134848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.902 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.908 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.912 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 35u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.918 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8020ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5434ull)) = descriptorSets[1u]; } // 21.925 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1031ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8020ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8020ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5434ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5434ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5434ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5434ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5434ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5434ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5434ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5434ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5434ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5434ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5434ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5434ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5434ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.931 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8020ull)), app.GetResource(DescriptorSetID(5434ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5150464u, 5134848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.936 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.941 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.946 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.956 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2960ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3299ull)) = descriptorSets[1u]; } // 21.964 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(252ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2960ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2960ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3299ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3299ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3299ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3299ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3299ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3299ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3299ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3299ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3299ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3299ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3299ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3299ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3299ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 21.971 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2960ull)), app.GetResource(DescriptorSetID(3299ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5152000u, 5134848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 21.976 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 21.981 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 21.986 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 21.994 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8022ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3032ull)) = descriptorSets[1u]; } // 22.000 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1051ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8022ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8022ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3032ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3032ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3032ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3032ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3032ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3032ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3032ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3032ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3032ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3032ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3032ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3032ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3032ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.006 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8022ull)), app.GetResource(DescriptorSetID(3032ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5153536u, 5134848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.011 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.016 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.021 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 28u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.029 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7799ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1460ull)) = descriptorSets[1u]; } // 22.035 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(715ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7799ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7799ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1460ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1460ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1460ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1460ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1460ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1460ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1460ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1460ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1460ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1460ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(1460ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(1460ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(1460ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.042 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7799ull)), app.GetResource(DescriptorSetID(1460ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5155072u, 5134848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.047 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.052 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.057 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.069 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8024ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3161ull)) = descriptorSets[1u]; } // 22.076 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(751ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8024ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8024ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3161ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3161ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3161ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3161ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3161ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3161ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3161ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3161ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3161ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3161ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3161ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3161ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3161ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.082 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8024ull)), app.GetResource(DescriptorSetID(3161ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5156608u, 5158144u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.087 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.093 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.098 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.105 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4222ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1926ull)) = descriptorSets[1u]; } // 22.112 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(5ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4222ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4222ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1926ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1926ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1926ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1926ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1926ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1926ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1926ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1926ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1926ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1926ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(1926ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(1926ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(1926ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.118 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4222ull)), app.GetResource(DescriptorSetID(1926ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5158400u, 5158144u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.123 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.128 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.133 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.143 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8025ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5545ull)) = descriptorSets[1u]; } // 22.151 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(25ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8025ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8025ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5545ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5545ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5545ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5545ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5545ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5545ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5545ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5545ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5545ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5545ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5545ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5545ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5545ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.157 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8025ull)), app.GetResource(DescriptorSetID(5545ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5159936u, 5158144u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.162 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.167 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.172 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.180 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4671ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2823ull)) = descriptorSets[1u]; } // 22.187 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(501ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4671ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4671ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2823ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2823ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2823ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2823ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2823ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2823ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2823ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2823ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2823ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2823ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(2823ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(2823ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(2823ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.193 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4671ull)), app.GetResource(DescriptorSetID(2823ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5161472u, 5163008u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.198 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.203 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.209 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.215 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(900ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5141ull)) = descriptorSets[1u]; } // 22.221 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(168ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(900ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(900ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5141ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5141ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5141ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5141ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5141ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5141ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5141ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5141ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5141ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5141ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5141ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5141ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5141ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.227 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(900ull)), app.GetResource(DescriptorSetID(5141ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5163264u, 5163008u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.234 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.239 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.244 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 26u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.255 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8026ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8027ull)) = descriptorSets[1u]; } // 22.263 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1052ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8026ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8026ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8027ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8027ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8027ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8027ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8027ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8027ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8027ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8027ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8027ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8027ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8027ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8027ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8027ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.270 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8026ull)), app.GetResource(DescriptorSetID(8027ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5164800u, 5163008u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.275 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.281 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.285 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 51u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.294 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8029ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5040ull)) = descriptorSets[1u]; } // 22.300 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1033ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8029ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8029ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5040ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5040ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5040ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5040ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5040ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5040ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5040ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5040ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5040ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5040ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5040ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5040ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5040ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.306 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8029ull)), app.GetResource(DescriptorSetID(5040ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5166336u, 5163008u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.311 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.316 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.322 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 28u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.333 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8030ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8033ull)) = descriptorSets[1u]; } // 22.340 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1034ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8030ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8030ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8033ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8033ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8033ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8033ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8033ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8033ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8033ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8033ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8033ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8033ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8033ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8033ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8033ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.347 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8030ull)), app.GetResource(DescriptorSetID(8033ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5167872u, 5163008u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.352 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.358 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.363 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 26u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.370 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1746ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8036ull)) = descriptorSets[1u]; } // 22.377 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(93ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1746ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1746ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8036ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8036ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8036ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8036ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8036ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8036ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8036ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8036ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8036ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8036ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8036ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8036ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8036ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.383 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1746ull)), app.GetResource(DescriptorSetID(8036ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5169408u, 5163008u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.388 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.393 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.399 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 36u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.405 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8040ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3221ull)) = descriptorSets[1u]; } // 22.410 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(914ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8040ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8040ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3221ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3221ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3221ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3221ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3221ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3221ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(3221ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(3221ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(3221ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(3221ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(3221ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(3221ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(3221ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.416 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8040ull)), app.GetResource(DescriptorSetID(3221ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5170944u, 5163008u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.421 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.425 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.430 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.441 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8041ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8043ull)) = descriptorSets[1u]; } // 22.447 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(232ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8041ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8041ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8043ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8043ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8043ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8043ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8043ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8043ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8043ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8043ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8043ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8043ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8043ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8043ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8043ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.454 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8041ull)), app.GetResource(DescriptorSetID(8043ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5172480u, 5163008u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.459 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.463 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.468 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.475 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5825ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8045ull)) = descriptorSets[1u]; } // 22.480 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1053ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5825ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5825ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8045ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8045ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8045ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8045ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8045ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8045ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8045ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8045ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8045ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8045ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8045ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8045ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8045ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.486 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5825ull)), app.GetResource(DescriptorSetID(8045ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5174016u, 5163008u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.491 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.496 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.501 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 29u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.507 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8046ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8047ull)) = descriptorSets[1u]; } // 22.513 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(814ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8046ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8046ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8047ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8047ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8047ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8047ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8047ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8047ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8047ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8047ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8047ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8047ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8047ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8047ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8047ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.518 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8046ull)), app.GetResource(DescriptorSetID(8047ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5175552u, 5163008u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.523 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.528 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.533 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.544 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8049ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1520ull)) = descriptorSets[1u]; } // 22.550 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(647ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8049ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8049ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1520ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1520ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1520ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1520ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1520ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1520ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1520ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1520ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1520ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1520ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(1520ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(1520ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(1520ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.558 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8049ull)), app.GetResource(DescriptorSetID(1520ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5177088u, 5178624u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.563 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.567 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.572 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.580 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3494ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8051ull)) = descriptorSets[1u]; } // 22.586 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(758ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3494ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3494ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8051ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8051ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8051ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8051ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8051ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8051ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8051ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8051ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8051ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8051ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8051ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8051ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8051ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.593 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3494ull)), app.GetResource(DescriptorSetID(8051ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5178880u, 5178624u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.598 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.602 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.607 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.619 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1774ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4482ull)) = descriptorSets[1u]; } // 22.626 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(446ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1774ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1774ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4482ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4482ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4482ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4482ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4482ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4482ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4482ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4482ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4482ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4482ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(4482ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(4482ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(4482ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.633 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1774ull)), app.GetResource(DescriptorSetID(4482ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5180416u, 5181952u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.638 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.643 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.653 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 8u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.664 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2540ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8053ull)) = descriptorSets[1u]; } // 22.671 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(628ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2540ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2540ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8053ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8053ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8053ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8053ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8053ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8053ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8053ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8053ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8053ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8053ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8053ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8053ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8053ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.677 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2540ull)), app.GetResource(DescriptorSetID(8053ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5182208u, 5183744u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.683 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.690 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.697 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.708 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2267ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5702ull)) = descriptorSets[1u]; } // 22.718 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(119ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2267ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2267ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5702ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5702ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5702ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5702ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5702ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5702ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5702ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5702ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5702ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5702ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5702ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5702ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5702ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.725 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2267ull)), app.GetResource(DescriptorSetID(5702ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5184000u, 5183744u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.730 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.735 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.788 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.805 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8054ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2008ull)) = descriptorSets[1u]; } // 22.813 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(307ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8054ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8054ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2008ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2008ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2008ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2008ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2008ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2008ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2008ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2008ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2008ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2008ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(2008ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(2008ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(2008ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.819 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8054ull)), app.GetResource(DescriptorSetID(2008ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5185536u, 5187072u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.824 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.829 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.834 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.841 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8056ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5553ull)) = descriptorSets[1u]; } // 22.847 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(591ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8056ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8056ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5553ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5553ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5553ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5553ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5553ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5553ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5553ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5553ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5553ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5553ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5553ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5553ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5553ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.853 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8056ull)), app.GetResource(DescriptorSetID(5553ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5187328u, 5187072u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.858 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.863 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.867 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 13u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.878 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(289ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(6707ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8059ull)) = descriptorSets[1u]; } // 22.885 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(594ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(6707ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(6707ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8059ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8059ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8059ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8059ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8059ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8059ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8059ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8059ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8059ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8059ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8059ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8059ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8059ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.892 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6707ull)), app.GetResource(DescriptorSetID(8059ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5188864u, 5187072u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.897 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.902 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.906 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.920 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(4ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4987ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8329ull)) = descriptorSets[1u]; } // 22.927 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(595ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4987ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4987ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8329ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8329ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8329ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8329ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8329ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8329ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8329ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8329ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8329ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(8329ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(8329ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(8329ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(8329ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.933 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4987ull)), app.GetResource(DescriptorSetID(8329ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5190400u, 5187072u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.938 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.942 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.947 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 13u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.954 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(2ull)), app.GetResource(DescriptorSetLayoutID(44ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(4ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8330ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7034ull)) = descriptorSets[1u]; } // 22.960 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(505ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8330ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8330ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 1296ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7034ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7034ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7034ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7034ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7034ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7034ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(455ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7034ull)); descriptorWrites[8u].dstBinding = 6u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(434ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(7034ull)); descriptorWrites[9u].dstBinding = 7u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(431ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(7034ull)); descriptorWrites[10u].dstBinding = 8u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(430ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(7034ull)); descriptorWrites[11u].dstBinding = 9u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(7034ull)); descriptorWrites[12u].dstBinding = 10u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(7034ull)); descriptorWrites[13u].dstBinding = 11u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(547ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(7034ull)); descriptorWrites[14u].dstBinding = 12u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 22.966 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8330ull)), app.GetResource(DescriptorSetID(7034ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5102336u, 5191936u, 5187072u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(27ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 22.971 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 22.975 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 22.980 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 48u, /*instanceCount*/ 194u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 22.987 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(301ull)), /*query*/ 3u ); // 22.993 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(301ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5048ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 23.001 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(301ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 23.008 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass52 (const VApp &app) { // 23.106 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(20ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(53ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 23.133 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(81ull)) ); // 23.157 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(27ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(34ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5672ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1381ull)) = descriptorSets[1u]; } // 23.166 ms { VkWriteDescriptorSet descriptorWrites[2u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5672ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1381ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 2u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 23.173 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 2196.000000f; viewports[0u].height = 1236.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 23.179 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 2196u, 1236u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 23.185 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5672ull)), app.GetResource(DescriptorSetID(1381ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5193472u, 5193728u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(50ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.191 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 533504ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 23.197 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*vertexCount*/ 4u, /*instanceCount*/ 1u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 23.202 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass53 (const VApp &app) { // 23.219 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(20ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(53ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 23.227 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(82ull)) ); // 23.250 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(51ull)), app.GetResource(DescriptorSetLayoutID(20ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(145ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5628ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1821ull)) = descriptorSets[1u]; } // 23.258 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(599ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(600ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 352ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5628ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5628ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5628ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5628ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5628ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_1; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 480ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1821ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1821ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1821ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(217ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1821ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 23.265 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 2194.000000f; viewports[0u].height = 934.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 23.270 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 2194u, 934u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 23.275 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 128u ); // 23.280 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5628ull)), app.GetResource(DescriptorSetID(1821ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5193984u, 5194496u, 5194752u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.286 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 30976ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 23.292 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.297 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.303 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5628ull)), app.GetResource(DescriptorSetID(1821ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5195264u, 5194496u, 5195776u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.308 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.313 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.320 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5628ull)), app.GetResource(DescriptorSetID(1821ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5196288u, 5194496u, 5196800u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.325 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.330 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.343 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5628ull)), app.GetResource(DescriptorSetID(1821ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5197312u, 5194496u, 5197824u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.349 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.354 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.360 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5628ull)), app.GetResource(DescriptorSetID(1821ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5198336u, 5194496u, 5198848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.365 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.370 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.375 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(83ull)) ); // 23.388 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(40ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(145ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(477ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2948ull)) = descriptorSets[1u]; } // 23.394 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(433ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(601ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 304ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(477ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(477ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(477ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(477ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 400ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2948ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2948ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2948ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(66ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2948ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(9ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(307ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2948ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 23.401 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(477ull)), app.GetResource(DescriptorSetID(2948ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5199360u, 5199872u, 5200128u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(26ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.407 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1042432ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 23.412 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 1047808ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.417 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.422 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(82ull)) ); // 23.429 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(51ull)), app.GetResource(DescriptorSetLayoutID(20ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(145ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8063ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8064ull)) = descriptorSets[1u]; } // 23.435 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(599ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(600ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 352ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8063ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8063ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8063ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8063ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8063ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_1; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 480ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8064ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8064ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8064ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(217ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8064ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 23.440 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8063ull)), app.GetResource(DescriptorSetID(8064ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5200640u, 5201152u, 5201408u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.446 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 30976ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 23.450 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.455 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.465 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8063ull)), app.GetResource(DescriptorSetID(8064ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5201920u, 5201152u, 5202432u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.471 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.476 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.481 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8063ull)), app.GetResource(DescriptorSetID(8064ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5202944u, 5201152u, 5203456u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.508 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.514 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.518 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(83ull)) ); // 23.527 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(40ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(145ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8065ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8068ull)) = descriptorSets[1u]; } // 23.534 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(433ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(601ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 304ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8065ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8065ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8065ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8065ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 400ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8068ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8068ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8068ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(66ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8068ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(9ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(307ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8068ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 23.545 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8065ull)), app.GetResource(DescriptorSetID(8068ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5203968u, 5204480u, 5204736u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(26ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.554 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1042432ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 23.559 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 1047808ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.564 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.568 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(82ull)) ); // 23.581 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(51ull)), app.GetResource(DescriptorSetLayoutID(20ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(145ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4529ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4313ull)) = descriptorSets[1u]; } // 23.588 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(599ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(600ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 352ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4529ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4529ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4529ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4529ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4529ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_1; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 480ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4313ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4313ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4313ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(217ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4313ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 23.593 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4529ull)), app.GetResource(DescriptorSetID(4313ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5205248u, 5205760u, 5206016u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.598 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 30976ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 23.603 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.608 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.614 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4529ull)), app.GetResource(DescriptorSetID(4313ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5206528u, 5205760u, 5207040u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.619 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.624 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.629 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4529ull)), app.GetResource(DescriptorSetID(4313ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5207552u, 5205760u, 5208064u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.634 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.639 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.644 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(83ull)) ); // 23.651 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(40ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(145ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8069ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8070ull)) = descriptorSets[1u]; } // 23.657 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(433ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(601ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 304ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8069ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8069ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8069ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8069ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 400ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8070ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8070ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8070ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(66ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8070ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(9ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(307ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8070ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 23.662 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8069ull)), app.GetResource(DescriptorSetID(8070ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5208576u, 5209088u, 5209344u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(26ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.667 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1042432ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 23.671 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 1047808ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.676 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.681 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(82ull)) ); // 23.692 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(51ull)), app.GetResource(DescriptorSetLayoutID(20ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(145ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1638ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8071ull)) = descriptorSets[1u]; } // 23.698 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(599ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(600ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 352ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1638ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1638ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1638ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1638ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1638ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_1; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 480ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8071ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8071ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8071ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(217ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8071ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 23.704 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1638ull)), app.GetResource(DescriptorSetID(8071ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5209856u, 5210368u, 5210624u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.709 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 30976ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 23.714 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.718 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.725 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1638ull)), app.GetResource(DescriptorSetID(8071ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5211136u, 5210368u, 5211648u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.730 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.735 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.741 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1638ull)), app.GetResource(DescriptorSetID(8071ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5212160u, 5210368u, 5212672u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.746 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.751 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.758 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1638ull)), app.GetResource(DescriptorSetID(8071ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5213184u, 5210368u, 5213696u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.763 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.767 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.778 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1638ull)), app.GetResource(DescriptorSetID(8071ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5214208u, 5210368u, 5214720u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.783 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.788 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.793 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(83ull)) ); // 23.800 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(40ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(145ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8072ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7358ull)) = descriptorSets[1u]; } // 23.806 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(433ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(601ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 304ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8072ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8072ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8072ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8072ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 400ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7358ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7358ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7358ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(66ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7358ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(9ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(307ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7358ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 23.812 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8072ull)), app.GetResource(DescriptorSetID(7358ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5215232u, 5215744u, 5216000u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(26ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.817 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1042432ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 23.822 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 1047808ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.826 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.831 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(82ull)) ); // 23.838 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(51ull)), app.GetResource(DescriptorSetLayoutID(20ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(145ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(6652ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8073ull)) = descriptorSets[1u]; } // 23.843 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(599ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(600ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 352ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(6652ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(6652ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(6652ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(6652ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(6652ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_1; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 480ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8073ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8073ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8073ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(217ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8073ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 23.849 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6652ull)), app.GetResource(DescriptorSetID(8073ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5216512u, 5217024u, 5217280u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.854 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 30976ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 23.858 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.863 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.868 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(83ull)) ); // 23.878 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(40ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(145ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8061ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8074ull)) = descriptorSets[1u]; } // 23.886 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(433ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(601ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 304ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8061ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8061ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8061ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8061ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 400ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8074ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8074ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8074ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(66ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8074ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(9ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(307ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8074ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 23.894 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8061ull)), app.GetResource(DescriptorSetID(8074ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5217792u, 5218304u, 5218560u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(26ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.901 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1042432ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 23.909 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 1047808ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.916 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.924 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(82ull)) ); // 23.938 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(51ull)), app.GetResource(DescriptorSetLayoutID(20ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(145ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8077ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8078ull)) = descriptorSets[1u]; } // 23.947 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(599ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(600ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 352ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8077ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8077ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8077ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8077ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8077ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_1; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 480ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8078ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8078ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8078ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(217ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8078ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 23.955 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8077ull)), app.GetResource(DescriptorSetID(8078ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5219072u, 5219584u, 5219840u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.963 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 30976ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 23.970 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.975 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.981 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8077ull)), app.GetResource(DescriptorSetID(8078ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5220352u, 5219584u, 5220864u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 23.986 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 23.991 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 23.997 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8077ull)), app.GetResource(DescriptorSetID(8078ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5221376u, 5219584u, 5221888u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.002 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.006 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.018 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8077ull)), app.GetResource(DescriptorSetID(8078ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5222400u, 5219584u, 5222912u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.024 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.029 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.034 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(83ull)) ); // 24.040 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(40ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(145ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4881ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7718ull)) = descriptorSets[1u]; } // 24.046 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(433ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(601ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 304ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4881ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4881ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4881ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4881ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 400ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7718ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7718ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7718ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(66ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7718ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(9ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(307ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(7718ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 24.052 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4881ull)), app.GetResource(DescriptorSetID(7718ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5223424u, 5223936u, 5224192u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(26ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.057 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1042432ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 24.062 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 1047808ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.066 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.072 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4881ull)), app.GetResource(DescriptorSetID(7718ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5224704u, 5223936u, 5225216u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(26ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.077 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 1047808ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.081 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.126 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4881ull)), app.GetResource(DescriptorSetID(7718ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5225728u, 5223936u, 5226240u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(26ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.134 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 1047808ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.139 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.145 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4881ull)), app.GetResource(DescriptorSetID(7718ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5226752u, 5223936u, 5227264u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(26ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.149 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 1047808ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.154 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.159 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4881ull)), app.GetResource(DescriptorSetID(7718ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5227776u, 5223936u, 5228288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(26ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.164 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 1047808ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.169 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.174 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4881ull)), app.GetResource(DescriptorSetID(7718ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5228800u, 5223936u, 5229312u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(26ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.179 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 1047808ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.183 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.189 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(67ull)) ); // 24.202 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(10ull)), app.GetResource(DescriptorSetLayoutID(20ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(65ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8060ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(541ull)) = descriptorSets[1u]; } // 24.210 ms { VkWriteDescriptorSet descriptorWrites[8u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(433ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(601ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 304ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8060ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8060ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8060ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8060ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 384ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(541ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(541ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(541ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(9ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(307ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(541ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 8u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 24.216 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8060ull)), app.GetResource(DescriptorSetID(541ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5229824u, 5230336u, 5230592u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(57ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.221 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 1042432ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 24.227 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(1266ull)), /*offset*/ 1047808ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.232 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.247 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(82ull)) ); // 24.273 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(51ull)), app.GetResource(DescriptorSetLayoutID(20ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(145ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1455ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8079ull)) = descriptorSets[1u]; } // 24.285 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(599ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(600ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 352ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1455ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1455ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1455ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1455ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1455ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_1; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 480ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8079ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8079ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8079ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(217ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8079ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 24.295 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1455ull)), app.GetResource(DescriptorSetID(8079ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5231104u, 5231616u, 5231872u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.305 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 30976ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 24.313 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.321 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.331 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1455ull)), app.GetResource(DescriptorSetID(8079ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5232384u, 5231616u, 5232896u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.336 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.338 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.340 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1455ull)), app.GetResource(DescriptorSetID(8079ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5233408u, 5231616u, 5233920u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.341 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.342 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.354 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1455ull)), app.GetResource(DescriptorSetID(8079ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5234432u, 5231616u, 5234944u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.356 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.357 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.359 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1455ull)), app.GetResource(DescriptorSetID(8079ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5235456u, 5231616u, 5235968u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.360 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.361 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.363 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1455ull)), app.GetResource(DescriptorSetID(8079ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5236480u, 5231616u, 5236992u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.364 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.365 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.367 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1455ull)), app.GetResource(DescriptorSetID(8079ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5237504u, 5231616u, 5238016u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.368 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.369 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.376 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1455ull)), app.GetResource(DescriptorSetID(8079ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5238528u, 5231616u, 5239040u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.377 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.378 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.380 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1455ull)), app.GetResource(DescriptorSetID(8079ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5239552u, 5231616u, 5240064u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.381 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.383 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.384 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1455ull)), app.GetResource(DescriptorSetID(8079ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5240576u, 5231616u, 5241088u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 24.385 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 953088ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 24.386 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*indexCount*/ 6144u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 24.388 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) ); } static void Frame1100_Thread11408_Pass54 (const VApp &app) { // 27.012 ms { VkClearValue clearValues[2u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 1065353216u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 1.000000f }; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[1u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(42ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(13ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 2u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 27.024 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass55 (const VApp &app) { // 27.035 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(20ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(13ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 27.043 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(86ull)) ); // 27.068 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(32ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(129ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5269ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(358ull)) = descriptorSets[1u]; } // 27.077 ms { VkWriteDescriptorSet descriptorWrites[10u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 592ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5269ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5269ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5269ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5269ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 336ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(358ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(358ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(358ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(360ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(358ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(458ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(358ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(186ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(358ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 10u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.083 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 2194.000000f; viewports[0u].height = 934.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 27.089 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 2194u, 934u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 27.093 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 27.098 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5269ull)), app.GetResource(DescriptorSetID(358ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5241600u, 5242368u, 5242624u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.104 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 125840ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.110 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.115 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.120 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(89ull)) ); // 27.128 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(32ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(129ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(130ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1674ull)) = descriptorSets[1u]; } // 27.135 ms { VkWriteDescriptorSet descriptorWrites[10u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 592ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(130ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(130ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(130ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(130ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 336ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1674ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1674ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1674ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(360ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1674ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(458ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1674ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(186ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1674ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 10u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.140 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(130ull)), app.GetResource(DescriptorSetID(1674ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5243136u, 5243904u, 5244160u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.146 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 125968ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.150 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.155 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.161 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(130ull)), app.GetResource(DescriptorSetID(1674ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5244672u, 5243904u, 5245440u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.166 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 117696ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.170 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.175 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 13u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.180 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(87ull)) ); // 27.196 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5271ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5274ull)) = descriptorSets[1u]; } // 27.204 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(621ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5271ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5271ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5271ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5271ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5271ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5271ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5271ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5271ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5274ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5274ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5274ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5274ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5274ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5274ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5274ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5274ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5274ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.210 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 8u ); // 27.216 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5271ull)), app.GetResource(DescriptorSetID(5274ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5245952u, 5246720u, 5246976u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.224 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.228 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.233 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 59u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.239 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5276ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1594ull)) = descriptorSets[1u]; } // 27.244 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(759ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5276ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5276ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5276ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5276ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5276ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5276ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5276ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5276ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1594ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1594ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1594ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1594ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(1594ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(1594ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(1594ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(1594ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(1594ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.250 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5276ull)), app.GetResource(DescriptorSetID(1594ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5245952u, 5246720u, 5247744u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.254 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.259 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 59u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.264 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5279ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4220ull)) = descriptorSets[1u]; } // 27.269 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(302ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5279ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5279ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5279ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5279ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5279ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5279ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5279ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5279ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4220ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4220ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4220ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4220ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(4220ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(4220ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(4220ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(4220ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(4220ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.275 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5279ull)), app.GetResource(DescriptorSetID(4220ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5245952u, 5246720u, 5248512u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.281 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.282 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 59u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.284 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1995ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5281ull)) = descriptorSets[1u]; } // 27.286 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(188ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1995ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1995ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1995ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1995ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1995ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1995ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1995ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1995ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5281ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5281ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5281ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5281ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5281ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5281ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5281ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5281ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5281ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.287 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1995ull)), app.GetResource(DescriptorSetID(5281ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5249280u, 5246720u, 5250048u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.288 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.289 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 29u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.296 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5286ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5289ull)) = descriptorSets[1u]; } // 27.298 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1054ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5286ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5286ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5286ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5286ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5286ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5286ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5286ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5286ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5289ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5289ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5289ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5289ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5289ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5289ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5289ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5289ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5289ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.299 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5286ull)), app.GetResource(DescriptorSetID(5289ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5250816u, 5246720u, 5251584u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.300 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.301 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 49u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.303 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3327ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4765ull)) = descriptorSets[1u]; } // 27.304 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(464ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3327ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3327ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3327ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(3327ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(3327ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(3327ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(3327ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(3327ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4765ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4765ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4765ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4765ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(4765ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(4765ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(4765ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(4765ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(4765ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.306 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3327ull)), app.GetResource(DescriptorSetID(4765ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5252352u, 5246720u, 5253120u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.307 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.307 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 26u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.308 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(89ull)) ); // 27.315 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(32ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(129ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2848ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4696ull)) = descriptorSets[1u]; } // 27.316 ms { VkWriteDescriptorSet descriptorWrites[10u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 592ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2848ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2848ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2848ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2848ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 336ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4696ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4696ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4696ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(360ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4696ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(458ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4696ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(186ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4696ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 10u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.318 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 27.319 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2848ull)), app.GetResource(DescriptorSetID(4696ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5253888u, 5254656u, 5254912u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.320 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 118528ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.325 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.326 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 8u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.328 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2848ull)), app.GetResource(DescriptorSetID(4696ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5255424u, 5254656u, 5256192u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.329 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 126096ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.330 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.331 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.332 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(87ull)) ); // 27.335 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5294ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5296ull)) = descriptorSets[1u]; } // 27.337 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(615ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5294ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5294ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5294ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5294ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5294ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5294ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5294ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5294ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5296ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5296ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5296ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5296ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5296ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5296ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5296ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5296ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5296ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.338 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 8u ); // 27.339 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5294ull)), app.GetResource(DescriptorSetID(5296ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5256704u, 5257472u, 5257728u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.340 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.341 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.342 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 100u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.344 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(409ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5298ull)) = descriptorSets[1u]; } // 27.345 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(115ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(409ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(409ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(409ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(409ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(409ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(409ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(409ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(409ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5298ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5298ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5298ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5298ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5298ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5298ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5298ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5298ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5298ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.346 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(409ull)), app.GetResource(DescriptorSetID(5298ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5258496u, 5257472u, 5257728u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.347 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.348 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 100u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.349 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(142ull)) ); // 27.358 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(1ull)), app.GetResource(DescriptorSetLayoutID(40ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(239ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7274ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7278ull)) = descriptorSets[1u]; } // 27.360 ms { VkWriteDescriptorSet descriptorWrites[8u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 528ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7274ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7274ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7274ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 352ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7278ull)); descriptorWrites[3u].dstBinding = 0u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7278ull)); descriptorWrites[4u].dstBinding = 1u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7278ull)); descriptorWrites[5u].dstBinding = 2u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(154ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7278ull)); descriptorWrites[6u].dstBinding = 3u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(447ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7278ull)); descriptorWrites[7u].dstBinding = 4u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 8u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.361 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 27.362 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7274ull)), app.GetResource(DescriptorSetID(7278ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5259264u, 5260032u, 5260288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(82ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.364 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 3u ); const VkDeviceSize offsets[] = { 493312ull, 119616ull, 119872ull }; STATIC_ASSERT( CountOf(offsets) == 3u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 3u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.366 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.367 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 4u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.368 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7274ull)), app.GetResource(DescriptorSetID(7278ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5260800u, 5260032u, 5260288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(82ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.369 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 3u ); const VkDeviceSize offsets[] = { 493312ull, 119936ull, 120320ull }; STATIC_ASSERT( CountOf(offsets) == 3u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 3u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.370 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.371 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 6u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.372 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7274ull)), app.GetResource(DescriptorSetID(7278ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5261568u, 5260032u, 5260288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(82ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.373 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 3u ); const VkDeviceSize offsets[] = { 493312ull, 120416ull, 120864ull }; STATIC_ASSERT( CountOf(offsets) == 3u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 3u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.374 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.375 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 7u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.376 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(157ull)) ); // 27.387 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(1ull)), app.GetResource(DescriptorSetLayoutID(20ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(238ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7272ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7273ull)) = descriptorSets[1u]; } // 27.390 ms { VkWriteDescriptorSet descriptorWrites[7u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 528ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7272ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7272ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7272ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 352ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7273ull)); descriptorWrites[3u].dstBinding = 0u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7273ull)); descriptorWrites[4u].dstBinding = 1u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7273ull)); descriptorWrites[5u].dstBinding = 2u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(449ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7273ull)); descriptorWrites[6u].dstBinding = 3u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 7u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.391 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7272ull)), app.GetResource(DescriptorSetID(7273ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5262336u, 5263104u, 5263360u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(84ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.393 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 120976ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.394 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.394 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.395 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(144ull)) ); // 27.401 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(66ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(154ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7116ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8093ull)) = descriptorSets[1u]; } // 27.403 ms { VkWriteDescriptorSet descriptorWrites[11u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 608ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7116ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7116ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7116ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7116ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 464ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8093ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8093ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8093ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8093ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(8093ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(8093ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(8093ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 11u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.404 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7116ull)), app.GetResource(DescriptorSetID(8093ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5263872u, 5264640u, 5264896u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(83ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.406 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 121104ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.406 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.410 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 6u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.411 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(88ull)) ); // 27.418 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(51ull)), app.GetResource(DescriptorSetLayoutID(20ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(96ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5451ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5452ull)) = descriptorSets[1u]; } // 27.419 ms { VkWriteDescriptorSet descriptorWrites[9u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(669ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(489ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 352ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5451ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5451ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5451ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5451ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5451ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_1; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 368ull; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5452ull)); descriptorWrites[5u].dstBinding = 0u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = bufferInfo_2; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5452ull)); descriptorWrites[6u].dstBinding = 1u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_1; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5452ull)); descriptorWrites[7u].dstBinding = 2u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_2; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(189ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5452ull)); descriptorWrites[8u].dstBinding = 3u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_3; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 9u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.421 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 128u ); // 27.422 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5451ull)), app.GetResource(DescriptorSetID(5452ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5265408u, 5265920u, 5266176u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(55ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.423 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(39ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 83968ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.424 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(396ull)), /*offset*/ 208128ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.425 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.426 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(89ull)) ); // 27.432 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(32ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(129ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5283ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5284ull)) = descriptorSets[1u]; } // 27.434 ms { VkWriteDescriptorSet descriptorWrites[10u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 592ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5283ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5283ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5283ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5283ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 336ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5284ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5284ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5284ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(360ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5284ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(458ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5284ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(186ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5284ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 10u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.435 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 27.436 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5283ull)), app.GetResource(DescriptorSetID(5284ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5266688u, 5267456u, 5267712u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.436 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 125456ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.438 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.439 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 6u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.441 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5283ull)), app.GetResource(DescriptorSetID(5284ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5268224u, 5267456u, 5268992u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.442 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 126160ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.443 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.444 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 4u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.446 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(87ull)) ); // 27.449 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5300ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5302ull)) = descriptorSets[1u]; } // 27.451 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(161ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5300ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5300ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5300ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5300ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5300ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5300ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5300ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5300ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5302ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5302ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5302ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5302ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5302ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5302ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5302ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5302ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5302ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.452 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 8u ); // 27.453 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5300ull)), app.GetResource(DescriptorSetID(5302ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5269504u, 5270272u, 5270528u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.455 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.456 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.456 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 114u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.457 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(89ull)) ); // 27.463 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(32ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(129ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5292ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1736ull)) = descriptorSets[1u]; } // 27.472 ms { VkWriteDescriptorSet descriptorWrites[10u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 592ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5292ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5292ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5292ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5292ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 336ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1736ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1736ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1736ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(360ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1736ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(458ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1736ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(186ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1736ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 10u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.477 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 27.482 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5292ull)), app.GetResource(DescriptorSetID(1736ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5271296u, 5272064u, 5272320u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.487 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 126416ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.491 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.496 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 12u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.501 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(87ull)) ); // 27.509 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5394ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4898ull)) = descriptorSets[1u]; } // 27.515 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(650ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5394ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5394ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5394ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5394ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5394ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5394ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5394ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5394ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4898ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4898ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4898ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(4898ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(4898ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(4898ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(4898ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(4898ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(4898ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.521 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 8u ); // 27.526 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5394ull)), app.GetResource(DescriptorSetID(4898ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5272832u, 5273600u, 5273856u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.531 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.536 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.540 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 100u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.546 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5397ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2181ull)) = descriptorSets[1u]; } // 27.551 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(652ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5397ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5397ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5397ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5397ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5397ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5397ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5397ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5397ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2181ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2181ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(2181ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(2181ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(2181ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(2181ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(2181ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(2181ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(2181ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.557 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5397ull)), app.GetResource(DescriptorSetID(2181ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5274624u, 5273600u, 5273856u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.562 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.567 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 114u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.576 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5398ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5401ull)) = descriptorSets[1u]; } // 27.583 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(9ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5398ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5398ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5398ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5398ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5398ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5398ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5398ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5398ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5401ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5401ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5401ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5401ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5401ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5401ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5401ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5401ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5401ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.589 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5398ull)), app.GetResource(DescriptorSetID(5401ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5275392u, 5273600u, 5273856u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.593 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.598 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 100u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.604 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5404ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5405ull)) = descriptorSets[1u]; } // 27.610 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(654ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5404ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5404ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5404ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5404ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5404ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5404ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5404ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5404ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5405ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5405ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5405ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5405ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5405ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5405ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5405ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5405ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5405ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.615 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5404ull)), app.GetResource(DescriptorSetID(5405ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5276160u, 5273600u, 5273856u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.620 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.625 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 1548u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.630 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(86ull)) ); // 27.637 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(32ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(129ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5303ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5304ull)) = descriptorSets[1u]; } // 27.643 ms { VkWriteDescriptorSet descriptorWrites[10u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 592ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5303ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5303ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5303ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5303ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 336ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5304ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5304ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5304ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(360ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5304ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(458ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5304ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(186ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5304ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 10u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.648 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 27.652 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5303ull)), app.GetResource(DescriptorSetID(5304ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5276928u, 5277696u, 5277952u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.657 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 119104ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.662 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.667 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.671 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(89ull)) ); // 27.682 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(32ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(129ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4927ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2041ull)) = descriptorSets[1u]; } // 27.688 ms { VkWriteDescriptorSet descriptorWrites[10u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 592ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4927ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4927ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4927ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4927ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 336ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2041ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2041ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2041ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(360ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2041ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(458ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2041ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(186ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2041ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 10u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.694 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4927ull)), app.GetResource(DescriptorSetID(2041ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5278464u, 5279232u, 5279488u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.699 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 119232ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.704 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.709 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.715 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4927ull)), app.GetResource(DescriptorSetID(2041ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5280000u, 5279232u, 5280768u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.720 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 124560ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.724 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.729 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 14u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.735 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4927ull)), app.GetResource(DescriptorSetID(2041ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5281280u, 5279232u, 5282048u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.740 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 116672ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.745 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.749 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 4u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.754 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(87ull)) ); // 27.765 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5407ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5410ull)) = descriptorSets[1u]; } // 27.772 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(666ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5407ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5407ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5407ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5407ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5407ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5407ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5407ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5407ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5410ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5410ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5410ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5410ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5410ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5410ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5410ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5410ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5410ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.779 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 8u ); // 27.783 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5407ull)), app.GetResource(DescriptorSetID(5410ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5282560u, 5283328u, 5283584u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.788 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.793 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.798 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 113u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.802 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(89ull)) ); // 27.809 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(32ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(129ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5307ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2499ull)) = descriptorSets[1u]; } // 27.815 ms { VkWriteDescriptorSet descriptorWrites[10u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 592ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5307ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5307ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5307ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5307ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 336ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2499ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2499ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2499ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(360ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2499ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(458ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(2499ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(186ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(2499ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 10u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.820 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 27.825 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5307ull)), app.GetResource(DescriptorSetID(2499ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5284352u, 5285120u, 5285376u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.829 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 116928ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.834 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.839 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 12u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.844 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(87ull)) ); // 27.851 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(748ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5439ull)) = descriptorSets[1u]; } // 27.857 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(667ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(748ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(748ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(748ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(748ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(748ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(748ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(748ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(748ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5439ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5439ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5439ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5439ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5439ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5439ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5439ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5439ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5439ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.863 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 8u ); // 27.868 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(748ull)), app.GetResource(DescriptorSetID(5439ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5285888u, 5286656u, 5286912u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.873 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 27.877 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.882 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 100u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.891 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(132ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5443ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5444ull)) = descriptorSets[1u]; } // 27.898 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(53ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5443ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5443ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5443ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5443ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5443ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5443ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5443ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5443ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5444ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5444ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5444ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5444ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5444ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5444ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5444ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5444ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5444ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.904 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5443ull)), app.GetResource(DescriptorSetID(5444ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5287680u, 5286656u, 5286912u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.909 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.914 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 112u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.925 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(10ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(766ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5445ull)) = descriptorSets[1u]; } // 27.931 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(48ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(766ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(766ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(766ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(766ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(766ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(766ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(766ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(766ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5445ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5445ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5445ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5445ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5445ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5445ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5445ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5445ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5445ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.936 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(766ull)), app.GetResource(DescriptorSetID(5445ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5288448u, 5286656u, 5286912u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.941 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.946 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 100u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.952 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(10ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2489ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5448ull)) = descriptorSets[1u]; } // 27.957 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(668ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2489ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2489ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2489ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2489ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(2489ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(2489ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(2489ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(2489ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5448ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5448ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5448ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5448ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5448ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5448ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5448ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5448ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5448ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.963 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2489ull)), app.GetResource(DescriptorSetID(5448ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5289216u, 5286656u, 5286912u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 27.968 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 27.973 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 1545u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 27.977 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(86ull)) ); // 27.985 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(32ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(129ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4265ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(931ull)) = descriptorSets[1u]; } // 27.990 ms { VkWriteDescriptorSet descriptorWrites[10u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 592ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4265ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4265ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4265ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4265ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 336ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(931ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(931ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(931ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(360ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(931ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(458ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(931ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(186ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(931ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 10u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 27.995 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 28.001 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4265ull)), app.GetResource(DescriptorSetID(931ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5289984u, 5290752u, 5291008u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.006 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 121488ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.010 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.015 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 4u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.020 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(89ull)) ); // 28.030 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(32ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(129ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5366ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5370ull)) = descriptorSets[1u]; } // 28.036 ms { VkWriteDescriptorSet descriptorWrites[10u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 592ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5366ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5366ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5366ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5366ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 336ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5370ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5370ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5370ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(360ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5370ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(458ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5370ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(186ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5370ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 10u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 28.042 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5366ull)), app.GetResource(DescriptorSetID(5370ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5291520u, 5292288u, 5292544u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.047 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 121744ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.052 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.056 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 12u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.063 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5366ull)), app.GetResource(DescriptorSetID(5370ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5293056u, 5292288u, 5293824u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.068 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 113920ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.072 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.077 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 15u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.082 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(86ull)) ); // 28.089 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(32ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(129ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5381ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5386ull)) = descriptorSets[1u]; } // 28.095 ms { VkWriteDescriptorSet descriptorWrites[10u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 592ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5381ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5381ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5381ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5381ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 336ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5386ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5386ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5386ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(360ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5386ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(458ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5386ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(186ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5386ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 10u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 28.100 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5381ull)), app.GetResource(DescriptorSetID(5386ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5294336u, 5295104u, 5295360u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.105 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 122512ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.110 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.114 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 4u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.119 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(89ull)) ); // 28.130 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(32ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(129ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5388ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4291ull)) = descriptorSets[1u]; } // 28.136 ms { VkWriteDescriptorSet descriptorWrites[10u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 592ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5388ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5388ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5388ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5388ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 336ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4291ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4291ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4291ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(360ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4291ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(458ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4291ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(186ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4291ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 10u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 28.142 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5388ull)), app.GetResource(DescriptorSetID(4291ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5295872u, 5296640u, 5296896u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.147 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 122768ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.151 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.156 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 11u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.161 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(87ull)) ); // 28.169 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(52ull)), app.GetResource(DescriptorSetLayoutID(16ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(10ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4710ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5449ull)) = descriptorSets[1u]; } // 28.175 ms { VkWriteDescriptorSet descriptorWrites[17u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(185ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; VkDescriptorImageInfo imageInfo_11[1u] = {}; VkDescriptorImageInfo imageInfo_12[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 736ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4710ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4710ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4710ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4710ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4710ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4710ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4710ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4710ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[7u].pImageInfo = null; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = texelBufferView; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 560ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5449ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5449ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(5449ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(5449ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(5449ull)); descriptorWrites[12u].dstBinding = 4u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(5449ull)); descriptorWrites[13u].dstBinding = 5u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(5449ull)); descriptorWrites[14u].dstBinding = 6u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; descriptorWrites[15u].pNext = null; descriptorWrites[15u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_11[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_11[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_11[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[15u].dstSet = app.GetResource(DescriptorSetID(5449ull)); descriptorWrites[15u].dstBinding = 7u; descriptorWrites[15u].dstArrayElement = 0u; descriptorWrites[15u].descriptorCount = 1u; descriptorWrites[15u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[15u].pImageInfo = imageInfo_11; descriptorWrites[15u].pBufferInfo = null; descriptorWrites[15u].pTexelBufferView = null; descriptorWrites[16u].pNext = null; descriptorWrites[16u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_12[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_12[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_12[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[16u].dstSet = app.GetResource(DescriptorSetID(5449ull)); descriptorWrites[16u].dstBinding = 8u; descriptorWrites[16u].dstArrayElement = 0u; descriptorWrites[16u].descriptorCount = 1u; descriptorWrites[16u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[16u].pImageInfo = imageInfo_12; descriptorWrites[16u].pBufferInfo = null; descriptorWrites[16u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 17u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 28.181 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 8u ); // 28.186 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4710ull)), app.GetResource(DescriptorSetID(5449ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5297408u, 5298176u, 5298432u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(59ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.191 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.196 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.200 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 1549u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.205 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(93ull)) ); // 28.221 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(26ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(137ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1388ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1587ull)) = descriptorSets[1u]; } // 28.229 ms { VkWriteDescriptorSet descriptorWrites[15u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; VkDescriptorImageInfo imageInfo_8[1u] = {}; VkDescriptorImageInfo imageInfo_9[1u] = {}; VkDescriptorImageInfo imageInfo_10[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 608ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1388ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1388ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1388ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1388ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 544ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1587ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1587ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1587ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(1587ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(1587ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(1587ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(1587ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(360ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(1587ull)); descriptorWrites[11u].dstBinding = 7u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; descriptorWrites[12u].pNext = null; descriptorWrites[12u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_8[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_8[0u].imageView = app.GetResource(ImageViewID(458ull)); imageInfo_8[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[12u].dstSet = app.GetResource(DescriptorSetID(1587ull)); descriptorWrites[12u].dstBinding = 8u; descriptorWrites[12u].dstArrayElement = 0u; descriptorWrites[12u].descriptorCount = 1u; descriptorWrites[12u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[12u].pImageInfo = imageInfo_8; descriptorWrites[12u].pBufferInfo = null; descriptorWrites[12u].pTexelBufferView = null; descriptorWrites[13u].pNext = null; descriptorWrites[13u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_9[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_9[0u].imageView = app.GetResource(ImageViewID(186ull)); imageInfo_9[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[13u].dstSet = app.GetResource(DescriptorSetID(1587ull)); descriptorWrites[13u].dstBinding = 9u; descriptorWrites[13u].dstArrayElement = 0u; descriptorWrites[13u].descriptorCount = 1u; descriptorWrites[13u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[13u].pImageInfo = imageInfo_9; descriptorWrites[13u].pBufferInfo = null; descriptorWrites[13u].pTexelBufferView = null; descriptorWrites[14u].pNext = null; descriptorWrites[14u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_10[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_10[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_10[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[14u].dstSet = app.GetResource(DescriptorSetID(1587ull)); descriptorWrites[14u].dstBinding = 10u; descriptorWrites[14u].dstArrayElement = 0u; descriptorWrites[14u].descriptorCount = 1u; descriptorWrites[14u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[14u].pImageInfo = imageInfo_10; descriptorWrites[14u].pBufferInfo = null; descriptorWrites[14u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 15u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 28.235 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 28.240 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1388ull)), app.GetResource(DescriptorSetID(1587ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5299200u, 5299968u, 5300224u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(61ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.246 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 119360ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.251 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.255 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 4u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.261 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(142ull)) ); // 28.268 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(1ull)), app.GetResource(DescriptorSetLayoutID(40ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(239ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8092ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5290ull)) = descriptorSets[1u]; } // 28.274 ms { VkWriteDescriptorSet descriptorWrites[8u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 528ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8092ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8092ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8092ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 352ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5290ull)); descriptorWrites[3u].dstBinding = 0u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5290ull)); descriptorWrites[4u].dstBinding = 1u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5290ull)); descriptorWrites[5u].dstBinding = 2u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(154ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5290ull)); descriptorWrites[6u].dstBinding = 3u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(447ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5290ull)); descriptorWrites[7u].dstBinding = 4u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 8u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 28.280 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8092ull)), app.GetResource(DescriptorSetID(5290ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5300992u, 5301760u, 5302016u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(82ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.285 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 3u ); const VkDeviceSize offsets[] = { 493312ull, 114944ull, 115200ull }; STATIC_ASSERT( CountOf(offsets) == 3u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 3u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.290 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.294 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 4u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.300 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8092ull)), app.GetResource(DescriptorSetID(5290ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5302528u, 5301760u, 5302016u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(82ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.305 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 3u ); const VkDeviceSize offsets[] = { 493312ull, 115264ull, 115648ull }; STATIC_ASSERT( CountOf(offsets) == 3u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 3u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.310 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.315 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 6u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.320 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8092ull)), app.GetResource(DescriptorSetID(5290ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5303296u, 5301760u, 5302016u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(82ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.325 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 3u ); const VkDeviceSize offsets[] = { 493312ull, 115744ull, 116128ull }; STATIC_ASSERT( CountOf(offsets) == 3u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 3u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.330 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.335 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 6u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.340 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(157ull)) ); // 28.351 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(1ull)), app.GetResource(DescriptorSetLayoutID(20ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(238ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8254ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8258ull)) = descriptorSets[1u]; } // 28.358 ms { VkWriteDescriptorSet descriptorWrites[7u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 528ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8254ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8254ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8254ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 352ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8258ull)); descriptorWrites[3u].dstBinding = 0u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8258ull)); descriptorWrites[4u].dstBinding = 1u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8258ull)); descriptorWrites[5u].dstBinding = 2u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(449ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8258ull)); descriptorWrites[6u].dstBinding = 3u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 7u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 28.364 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8254ull)), app.GetResource(DescriptorSetID(8258ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5304064u, 5304832u, 5305088u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(84ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.369 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 116224ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.373 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.378 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 2u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.383 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(144ull)) ); // 28.390 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(66ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(154ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8096ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4966ull)) = descriptorSets[1u]; } // 28.397 ms { VkWriteDescriptorSet descriptorWrites[11u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 608ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8096ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8096ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8096ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8096ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 464ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4966ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(196ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4966ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(371ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4966ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(4966ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(537ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(4966ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(222ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(4966ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLED_IMAGE; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(8ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(4966ull)); descriptorWrites[10u].dstBinding = 6u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 11u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 28.403 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8096ull)), app.GetResource(DescriptorSetID(4966ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5305600u, 5306368u, 5306624u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(83ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.408 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 116352ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.412 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.417 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.422 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(141ull)) ); // 28.436 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(65ull)), app.GetResource(DescriptorSetLayoutID(20ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(8ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(28ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(45ull)) = descriptorSets[1u]; } // 28.444 ms { VkWriteDescriptorSet descriptorWrites[12u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(834ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; VkDescriptorImageInfo imageInfo_6[1u] = {}; VkDescriptorImageInfo imageInfo_7[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 720ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(28ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(28ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(28ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(433ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(28ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(427ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(28ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(37ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(28ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(28ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[6u].pImageInfo = null; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = texelBufferView; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(19ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(28ull)); descriptorWrites[7u].dstBinding = 7u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_4; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 352ull; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(45ull)); descriptorWrites[8u].dstBinding = 0u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[8u].pImageInfo = null; descriptorWrites[8u].pBufferInfo = bufferInfo_2; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(45ull)); descriptorWrites[9u].dstBinding = 1u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; descriptorWrites[10u].pNext = null; descriptorWrites[10u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_6[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_6[0u].imageView = app.GetResource(ImageViewID(69ull)); imageInfo_6[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[10u].dstSet = app.GetResource(DescriptorSetID(45ull)); descriptorWrites[10u].dstBinding = 2u; descriptorWrites[10u].dstArrayElement = 0u; descriptorWrites[10u].descriptorCount = 1u; descriptorWrites[10u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[10u].pImageInfo = imageInfo_6; descriptorWrites[10u].pBufferInfo = null; descriptorWrites[10u].pTexelBufferView = null; descriptorWrites[11u].pNext = null; descriptorWrites[11u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_7[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_7[0u].imageView = app.GetResource(ImageViewID(396ull)); imageInfo_7[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[11u].dstSet = app.GetResource(DescriptorSetID(45ull)); descriptorWrites[11u].dstBinding = 3u; descriptorWrites[11u].dstArrayElement = 0u; descriptorWrites[11u].descriptorCount = 1u; descriptorWrites[11u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[11u].pImageInfo = imageInfo_7; descriptorWrites[11u].pBufferInfo = null; descriptorWrites[11u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 12u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 28.450 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(28ull)), app.GetResource(DescriptorSetID(45ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5307136u, 5307904u, 5308160u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(81ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.455 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 493312ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.460 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.465 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 96u, /*instanceCount*/ 3u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.470 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(89ull)) ); // 28.477 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(35ull)), app.GetResource(DescriptorSetLayoutID(32ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(129ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4479ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5395ull)) = descriptorSets[1u]; } // 28.483 ms { VkWriteDescriptorSet descriptorWrites[10u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; VkDescriptorImageInfo imageInfo_5[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 592ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4479ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4479ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(8ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(30ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4479ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4479ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 336ull; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5395ull)); descriptorWrites[4u].dstBinding = 0u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = bufferInfo_2; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(7ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(5395ull)); descriptorWrites[5u].dstBinding = 1u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(5395ull)); descriptorWrites[6u].dstBinding = 2u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(360ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(5395ull)); descriptorWrites[7u].dstBinding = 3u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; descriptorWrites[8u].pNext = null; descriptorWrites[8u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(458ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; descriptorWrites[8u].dstSet = app.GetResource(DescriptorSetID(5395ull)); descriptorWrites[8u].dstBinding = 4u; descriptorWrites[8u].dstArrayElement = 0u; descriptorWrites[8u].descriptorCount = 1u; descriptorWrites[8u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[8u].pImageInfo = imageInfo_4; descriptorWrites[8u].pBufferInfo = null; descriptorWrites[8u].pTexelBufferView = null; descriptorWrites[9u].pNext = null; descriptorWrites[9u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_5[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_5[0u].imageView = app.GetResource(ImageViewID(186ull)); imageInfo_5[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[9u].dstSet = app.GetResource(DescriptorSetID(5395ull)); descriptorWrites[9u].dstBinding = 5u; descriptorWrites[9u].dstArrayElement = 0u; descriptorWrites[9u].descriptorCount = 1u; descriptorWrites[9u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[9u].pImageInfo = imageInfo_5; descriptorWrites[9u].pBufferInfo = null; descriptorWrites[9u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 10u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 28.488 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4479ull)), app.GetResource(DescriptorSetID(5395ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5308672u, 5309440u, 5309696u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.494 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 114880ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.500 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.505 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.511 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4479ull)), app.GetResource(DescriptorSetID(5395ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5310208u, 5309440u, 5310976u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.516 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 123536ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.521 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.526 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 16u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.536 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4479ull)), app.GetResource(DescriptorSetID(5395ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5311488u, 5309440u, 5312256u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.541 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 119040ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.546 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.551 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.557 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4479ull)), app.GetResource(DescriptorSetID(5395ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5312768u, 5309440u, 5313536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.562 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 123472ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.567 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.572 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.578 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4479ull)), app.GetResource(DescriptorSetID(5395ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5314048u, 5309440u, 5314816u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(58ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 28.583 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 127184ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 28.588 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 28.593 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*indexCount*/ 6u, /*instanceCount*/ 10u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 28.598 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) ); } static void Frame1100_Thread11408_Pass56 (const VApp &app) { // 29.586 ms { VkClearValue clearValues[2u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[1u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(39ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(60ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 2u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 29.597 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(148ull)) ); // 29.614 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(1ull)), app.GetResource(DescriptorSetLayoutID(40ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(41ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8141ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8062ull)) = descriptorSets[1u]; } // 29.622 ms { VkWriteDescriptorSet descriptorWrites[8u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(535ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 432ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8141ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8141ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8141ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 224ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8062ull)); descriptorWrites[3u].dstBinding = 0u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8062ull)); descriptorWrites[4u].dstBinding = 1u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(258ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8062ull)); descriptorWrites[5u].dstBinding = 2u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_1; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(258ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8062ull)); descriptorWrites[6u].dstBinding = 3u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_2; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(4ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(186ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8062ull)); descriptorWrites[7u].dstBinding = 4u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_3; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 8u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 29.627 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 2194.000000f; viewports[0u].height = 934.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 29.632 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 2194u, 934u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 29.637 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 1u ); // 29.642 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8141ull)), app.GetResource(DescriptorSetID(8062ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5315328u, 5315840u, 5316096u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(82ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 29.647 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 121104ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 29.652 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 29.656 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 6u, /*instanceCount*/ 6u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 29.666 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8141ull)), app.GetResource(DescriptorSetID(8062ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5316352u, 5315840u, 5316096u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(82ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 29.672 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)), app.GetResource(BufferID(30ull)) }; STATIC_ASSERT( CountOf(buffers) == 2u ); const VkDeviceSize offsets[] = { 493312ull, 116352ull }; STATIC_ASSERT( CountOf(offsets) == 2u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 2u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 29.676 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 295680ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 29.681 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 6u, /*instanceCount*/ 5u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 29.686 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass57 (const VApp &app) { // 29.709 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(44ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(62ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 29.717 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(102ull)) ); // 29.724 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(42ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(111ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5020ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5022ull)) = descriptorSets[1u]; } // 29.730 ms { VkWriteDescriptorSet descriptorWrites[4u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5020ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5022ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(329ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5022ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(553ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5022ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 4u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 29.736 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5020ull)), app.GetResource(DescriptorSetID(5022ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5316864u, 5317120u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(42ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 29.741 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 29.746 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 29.751 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 29.755 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass58 (const VApp &app) { // 29.777 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(20ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(53ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 29.783 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(103ull)) ); // 29.790 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(59ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(171ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8170ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8171ull)) = descriptorSets[1u]; } // 29.795 ms { VkWriteDescriptorSet descriptorWrites[2u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8170ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(382ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8171ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[1u].pImageInfo = imageInfo; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 2u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 29.800 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8170ull)), app.GetResource(DescriptorSetID(8171ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5317376u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(63ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 29.805 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 29.810 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 29.815 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 29.819 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass59 (const VApp &app) { // 29.865 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(8ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(136ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1098u, 618u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 29.872 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(104ull)) ); // 29.887 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(27ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(113ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4048ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5033ull)) = descriptorSets[1u]; } // 29.894 ms { VkWriteDescriptorSet descriptorWrites[2u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4048ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5033ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 2u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 29.899 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 1098.000000f; viewports[0u].height = 618.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 29.904 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 1098u, 618u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 29.909 ms app.vkCmdSetStencilReference( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*faceMask*/ VK_STENCIL_FACE_FRONT_BIT | VK_STENCIL_FACE_BACK_BIT, /*reference*/ 0u ); // 29.913 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4048ull)), app.GetResource(DescriptorSetID(5033ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5317632u, 5317888u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(50ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 29.919 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(40ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 96256ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 29.923 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*vertexCount*/ 10u, /*instanceCount*/ 1u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 29.928 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(105ull)) ); // 29.935 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(42ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(111ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5026ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1384ull)) = descriptorSets[1u]; } // 29.941 ms { VkWriteDescriptorSet descriptorWrites[4u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5026ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 96ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1384ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(553ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1384ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1384ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 4u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 29.946 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5026ull)), app.GetResource(DescriptorSetID(1384ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5318144u, 5318400u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(42ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 29.951 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 29.956 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 29.960 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 29.965 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass60 (const VApp &app) { // 30.002 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(17ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(137ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1098u, 618u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 30.010 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(131ull)) ); // 30.018 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(60ull)), app.GetResource(DescriptorSetLayoutID(62ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(294ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8172ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8173ull)) = descriptorSets[1u]; } // 30.025 ms { VkWriteDescriptorSet descriptorWrites[8u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 112ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8172ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(542ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8172ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[1u].pImageInfo = imageInfo; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 176ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8173ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 16ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8173ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(694ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8173ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(556ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8173ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_2; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(576ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(8173ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_3; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(8173ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_4; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 8u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.030 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 1097.000000f; viewports[0u].height = 467.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 30.035 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 1097u, 467u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 30.040 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8172ull)), app.GetResource(DescriptorSetID(8173ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5318656u, 5318912u, 5319168u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(71ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 30.045 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 30.049 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 30.054 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 30.058 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass61 (const VApp &app) { // 30.084 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(8ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(52ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1098u, 1276u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 30.090 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(104ull)) ); // 30.096 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(27ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(113ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4368ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5232ull)) = descriptorSets[1u]; } // 30.101 ms { VkWriteDescriptorSet descriptorWrites[2u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4368ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5232ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 2u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.106 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 1098.000000f; viewports[0u].height = 1276.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 30.111 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 1098u, 1276u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 30.115 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4368ull)), app.GetResource(DescriptorSetID(5232ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5319424u, 5319680u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(50ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 30.120 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 533504ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 30.124 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*vertexCount*/ 4u, /*instanceCount*/ 1u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 30.129 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(107ull)) ); // 30.136 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(58ull)), app.GetResource(DescriptorSetLayoutID(59ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(111ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1689ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2084ull)) = descriptorSets[1u]; } // 30.142 ms { VkWriteDescriptorSet descriptorWrites[4u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 192ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1689ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1689ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(693ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1689ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(3ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(311ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2084ull)); descriptorWrites[3u].dstBinding = 0u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 4u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.147 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1689ull)), app.GetResource(DescriptorSetID(2084ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5319936u, 5320192u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(66ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 30.152 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 506624ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 30.156 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 1536u, /*instanceCount*/ 1971u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 30.161 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass62 (const VApp &app) { // 30.177 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(8ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(107ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 30.184 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(104ull)) ); // 30.195 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(27ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(113ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(6867ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1485ull)) = descriptorSets[1u]; } // 30.201 ms { VkWriteDescriptorSet descriptorWrites[2u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(6867ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1485ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 2u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.206 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 2196.000000f; viewports[0u].height = 1236.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 30.214 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 2196u, 1236u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 30.219 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(6867ull)), app.GetResource(DescriptorSetID(1485ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5320448u, 5320704u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(50ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 30.224 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(40ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 96512ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 30.228 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*vertexCount*/ 10u, /*instanceCount*/ 1u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 30.233 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(108ull)) ); // 30.241 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(40ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(36ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4810ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4813ull)) = descriptorSets[1u]; } // 30.247 ms { VkWriteDescriptorSet descriptorWrites[6u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4810ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 128ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4813ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(62ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4813ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(685ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4813ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(553ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4813ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4813ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 6u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.253 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 2194.000000f; viewports[0u].height = 934.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 30.257 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 2194u, 934u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 30.262 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4810ull)), app.GetResource(DescriptorSetID(4813ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5320960u, 5321216u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(35ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 30.267 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 30.272 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 30.277 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 30.282 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass63 (const VApp &app) { // 30.321 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(17ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(70ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 30.328 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(16ull)) ); // 30.336 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(60ull)), app.GetResource(DescriptorSetLayoutID(40ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(102ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(199ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4815ull)) = descriptorSets[1u]; } // 30.343 ms { VkWriteDescriptorSet descriptorWrites[7u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 112ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(199ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(542ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(199ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[1u].pImageInfo = imageInfo; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 304ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4815ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(89ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4815ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(556ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4815ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(586ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4815ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4815ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 7u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.349 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(199ull)), app.GetResource(DescriptorSetID(4815ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5321472u, 5321728u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(85ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 30.354 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 30.359 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 30.363 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 30.368 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(156ull)) ); // 30.376 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(60ull)), app.GetResource(DescriptorSetLayoutID(40ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(102ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4816ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4817ull)) = descriptorSets[1u]; } // 30.381 ms { VkWriteDescriptorSet descriptorWrites[7u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 112ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4816ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(542ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4816ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[1u].pImageInfo = imageInfo; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 288ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4817ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(89ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4817ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(556ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4817ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(586ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(4817ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(4817ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_4; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 7u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.387 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4816ull)), app.GetResource(DescriptorSetID(4817ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5322240u, 5322496u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(85ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 30.392 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 30.396 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 30.401 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 30.406 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass64 (const VApp &app) { } static void Frame1100_Thread11408_Pass65 (const VApp &app) { // 30.507 ms { VkClearValue clearValues[2u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 1065353216u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 1.000000f }; // current clear value depends on render pass // .depthStencil = { 1.000000f, 0u } // .color.uint32 = { 1065353216u, 0u, 0u, 0u } clearValues[1u].color = { 1.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(46ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(71ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 138u, 78u }; renderPassBeginInfo.clearValueCount = 2u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 30.515 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(110ull)) ); // 30.522 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(58ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8175ull)) = descriptorSets[0u]; } // 30.528 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8175ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 32ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8175ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(288ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8175ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.533 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 138.000000f; viewports[0u].height = 59.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 30.538 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 138u, 59u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 30.543 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8175ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 5323520u, 5323776u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(5ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 30.549 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 506368ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 30.553 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 48u, /*instanceCount*/ 1018u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 30.558 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(111ull)) ); // 30.564 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(58ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7935ull)) = descriptorSets[0u]; } // 30.569 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 32ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7935ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 32ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7935ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(288ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7935ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.575 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7935ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 5324032u, 5324288u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(5ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 30.579 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 506368ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 30.584 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 48u, /*instanceCount*/ 1018u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 30.589 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass66 (const VApp &app) { // 30.607 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(47ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(55ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2196u, 1236u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 30.613 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(112ull)) ); // 30.626 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(61ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(297ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3158ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8176ull)) = descriptorSets[1u]; } // 30.633 ms { VkWriteDescriptorSet descriptorWrites[6u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3158ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 96ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8176ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 16ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8176ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(511ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8176ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(597ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8176ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(0ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(596ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8176ull)); descriptorWrites[5u].dstBinding = 4u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_2; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 6u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.639 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 2194.000000f; viewports[0u].height = 934.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 30.644 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 2194u, 934u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 30.649 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3158ull)), app.GetResource(DescriptorSetID(8176ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5324544u, 5324800u, 5325056u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(68ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 30.654 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 30.659 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 30.664 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 30.669 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass67 (const VApp &app) { // 30.687 ms { VkClearValue clearValues[1u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(48ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(23ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1098u, 618u }; renderPassBeginInfo.clearValueCount = 1u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 30.694 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(113ull)) ); // 30.701 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2863ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8177ull)) = descriptorSets[1u]; } // 30.707 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2863ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 32ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8177ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(323ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8177ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.713 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 1098.000000f; viewports[0u].height = 618.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 30.717 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 1098u, 618u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 30.722 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2863ull)), app.GetResource(DescriptorSetID(8177ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5325312u, 5325568u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 30.728 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 30.733 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 30.738 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 30.743 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass68 (const VApp &app) { } static void Frame1100_Thread11408_Pass69 (const VApp &app) { // 30.808 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(1ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(64ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 16u, 2u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 30.815 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(84ull)) ); // 30.821 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(25ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(115ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1700ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5034ull)) = descriptorSets[1u]; } // 30.828 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1700ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5034ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 16ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5034ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(542ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5034ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(488ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(5034ull)); descriptorWrites[4u].dstBinding = 3u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.833 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 16.000000f; viewports[0u].height = 2.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 30.838 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 16u, 2u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 30.843 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1700ull)), app.GetResource(DescriptorSetID(5034ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5326336u, 5326592u, 5326848u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(69ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 30.849 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 30.854 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 30.859 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 30.863 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass70 (const VApp &app) { // 30.876 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(1ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(66ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1u, 1u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 30.882 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(114ull)) ); // 30.888 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(867ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1819ull)) = descriptorSets[1u]; } // 30.894 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(867ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 64ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1819ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(422ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1819ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.899 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 1.000000f; viewports[0u].height = 1.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 30.905 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 1u, 1u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 30.909 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(867ull)), app.GetResource(DescriptorSetID(1819ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5327104u, 5327360u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(70ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 30.915 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 30.919 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 30.924 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 30.928 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass71 (const VApp &app) { // 30.945 ms { VkClearValue clearValues[1u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(48ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(83ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1098u, 618u }; renderPassBeginInfo.clearValueCount = 1u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 30.952 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(135ull)) ); // 30.959 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(60ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(111ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8185ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8187ull)) = descriptorSets[1u]; } // 30.965 ms { VkWriteDescriptorSet descriptorWrites[4u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8185ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(369ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8185ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[1u].pImageInfo = imageInfo; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8187ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(16ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8187ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 4u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.970 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 1098.000000f; viewports[0u].height = 618.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 30.975 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 1098u, 618u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 30.979 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8185ull)), app.GetResource(DescriptorSetID(8187ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5327616u, 5327872u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(91ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 30.985 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 30.989 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 30.994 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 30.998 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass72 (const VApp &app) { // 31.021 ms { VkClearValue clearValues[1u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(48ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(68ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 549u, 309u }; renderPassBeginInfo.clearValueCount = 1u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 31.027 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(113ull)) ); // 31.033 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(7104ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8179ull)) = descriptorSets[1u]; } // 31.039 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(7104ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 32ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8179ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(472ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8179ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 31.044 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 549.000000f; viewports[0u].height = 309.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 31.049 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 549u, 309u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 31.053 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(7104ull)), app.GetResource(DescriptorSetID(8179ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5328128u, 5328384u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 31.058 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 31.063 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 31.068 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 31.072 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass73 (const VApp &app) { // 31.089 ms { VkClearValue clearValues[1u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(48ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(72ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 275u, 155u }; renderPassBeginInfo.clearValueCount = 1u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 31.101 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8180ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(1530ull)) = descriptorSets[1u]; } // 31.107 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8180ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 32ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1530ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(247ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1530ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 31.113 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 275.000000f; viewports[0u].height = 155.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 31.117 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 275u, 155u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 31.122 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8180ull)), app.GetResource(DescriptorSetID(1530ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5328640u, 5328896u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 31.127 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 31.131 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 31.136 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 31.141 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass74 (const VApp &app) { // 31.158 ms { VkClearValue clearValues[1u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(48ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(4ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 138u, 78u }; renderPassBeginInfo.clearValueCount = 1u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 31.165 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3267ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3445ull)) = descriptorSets[1u]; } // 31.171 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3267ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 32ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3445ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(598ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3445ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 31.176 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 138.000000f; viewports[0u].height = 78.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 31.181 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 138u, 78u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 31.185 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3267ull)), app.GetResource(DescriptorSetID(3445ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5329152u, 5329408u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 31.190 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 31.195 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 31.199 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 31.205 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass75 (const VApp &app) { // 31.224 ms { VkClearValue clearValues[1u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(48ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(73ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 69u, 39u }; renderPassBeginInfo.clearValueCount = 1u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 31.231 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8181ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(6039ull)) = descriptorSets[1u]; } // 31.237 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8181ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 32ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(6039ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(532ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(6039ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 31.242 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 69.000000f; viewports[0u].height = 39.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 31.247 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 69u, 39u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 31.251 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8181ull)), app.GetResource(DescriptorSetID(6039ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5329664u, 5329920u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 31.256 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 31.261 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 31.265 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 31.270 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass76 (const VApp &app) { // 31.287 ms { VkClearValue clearValues[1u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(48ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(31ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 35u, 20u }; renderPassBeginInfo.clearValueCount = 1u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 31.294 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1190ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8182ull)) = descriptorSets[1u]; } // 31.299 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1190ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 32ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8182ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(33ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8182ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 31.304 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 35.000000f; viewports[0u].height = 20.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 31.309 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 35u, 20u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 31.314 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1190ull)), app.GetResource(DescriptorSetID(8182ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5330176u, 5330432u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 31.318 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 31.323 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 31.328 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 31.332 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass77 (const VApp &app) { // 31.349 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(49ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(74ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 18u, 20u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 31.355 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(149ull)) ); // 31.362 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5494ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8183ull)) = descriptorSets[1u]; } // 31.367 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 304ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5494ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 528ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8183ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(330ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8183ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 31.372 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 18.000000f; viewports[0u].height = 20.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 31.377 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 18u, 20u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 31.382 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5494ull)), app.GetResource(DescriptorSetID(8183ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5330688u, 5331200u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 31.386 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 31.391 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 31.395 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 31.400 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass78 (const VApp &app) { // 31.417 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(49ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(76ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 36u, 20u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 31.429 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8184ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3304ull)) = descriptorSets[1u]; } // 31.436 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 304ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8184ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 528ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3304ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(345ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3304ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 31.441 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 36.000000f; viewports[0u].height = 20.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 31.446 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 36u, 20u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 31.450 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8184ull)), app.GetResource(DescriptorSetID(3304ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5331968u, 5332480u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 31.455 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 31.460 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 31.465 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 31.469 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass79 (const VApp &app) { // 31.486 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(49ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(77ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 35u, 39u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 31.494 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3083ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8083ull)) = descriptorSets[1u]; } // 31.499 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 304ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3083ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 528ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8083ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(33ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8083ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 31.504 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 35.000000f; viewports[0u].height = 39.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 31.509 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 35u, 39u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 31.514 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3083ull)), app.GetResource(DescriptorSetID(8083ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5333248u, 5333760u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 31.518 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 31.523 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 31.527 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 31.532 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass80 (const VApp &app) { // 31.549 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(49ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(78ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 70u, 39u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 31.555 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(150ull)) ); // 31.561 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(42ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(111ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4886ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(5837ull)) = descriptorSets[1u]; } // 31.567 ms { VkWriteDescriptorSet descriptorWrites[4u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 304ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4886ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 544ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5837ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(426ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(5837ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(599ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(5837ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 4u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 31.572 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 70.000000f; viewports[0u].height = 39.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 31.577 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 70u, 39u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 31.582 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4886ull)), app.GetResource(DescriptorSetID(5837ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5334528u, 5335040u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(42ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 31.587 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 31.591 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 31.596 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 31.601 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass81 (const VApp &app) { // 31.617 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(49ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(79ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 69u, 78u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 31.623 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(154ull)) ); // 31.630 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8189ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8190ull)) = descriptorSets[1u]; } // 31.635 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 288ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8189ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 480ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8190ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(532ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8190ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 31.640 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 69.000000f; viewports[0u].height = 78.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 31.645 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 69u, 78u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 31.650 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8189ull)), app.GetResource(DescriptorSetID(8190ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5335808u, 5336320u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 31.655 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 31.660 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 31.664 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 31.669 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass82 (const VApp &app) { // 31.686 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(49ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(4ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 138u, 78u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 31.692 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(152ull)) ); // 31.703 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(42ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(111ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4290ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2484ull)) = descriptorSets[1u]; } // 31.710 ms { VkWriteDescriptorSet descriptorWrites[4u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 288ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4290ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 496ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2484ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(561ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2484ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(411ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(2484ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 4u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 31.715 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 138.000000f; viewports[0u].height = 78.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 31.720 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 138u, 78u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 31.724 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4290ull)), app.GetResource(DescriptorSetID(2484ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5336832u, 5337344u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(42ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 31.730 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 31.734 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 31.739 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 31.744 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass83 (const VApp &app) { // 31.761 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(49ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(80ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 275u, 155u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 31.767 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(151ull)) ); // 31.774 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4887ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(6470ull)) = descriptorSets[1u]; } // 31.779 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 144ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4887ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 208ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(6470ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(598ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(6470ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 31.784 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 275.000000f; viewports[0u].height = 155.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 31.789 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 275u, 155u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 31.794 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4887ull)), app.GetResource(DescriptorSetID(6470ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5337856u, 5338112u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 31.799 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 31.803 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 31.808 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 31.812 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass84 (const VApp &app) { // 31.829 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(49ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(72ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 275u, 155u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 31.835 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(153ull)) ); // 31.841 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(42ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(111ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(868ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7588ull)) = descriptorSets[1u]; } // 31.847 ms { VkWriteDescriptorSet descriptorWrites[4u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 144ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(868ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 224ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7588ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(532ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7588ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(530ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7588ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 4u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 31.852 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(868ull)), app.GetResource(DescriptorSetID(7588ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5338368u, 5338624u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(42ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 31.857 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 31.862 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 31.866 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 31.871 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass85 (const VApp &app) { // 31.888 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(49ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(81ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 549u, 309u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 31.894 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(151ull)) ); // 31.900 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8193ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(2558ull)) = descriptorSets[1u]; } // 31.905 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 144ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8193ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 208ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2558ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(247ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2558ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 31.910 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 549.000000f; viewports[0u].height = 309.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 31.915 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 549u, 309u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 31.919 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8193ull)), app.GetResource(DescriptorSetID(2558ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5338880u, 5339136u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 31.924 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 31.929 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 31.934 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 31.938 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass86 (const VApp &app) { // 31.955 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(49ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(82ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 549u, 309u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 31.961 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(153ull)) ); // 31.968 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(42ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(111ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8195ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(39ull)) = descriptorSets[1u]; } // 31.973 ms { VkWriteDescriptorSet descriptorWrites[4u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 144ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8195ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 224ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(39ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(598ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(39ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(228ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(39ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 4u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 31.978 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8195ull)), app.GetResource(DescriptorSetID(39ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5339392u, 5339648u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(42ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 31.983 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 31.988 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 31.993 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 31.997 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass87 (const VApp &app) { // 32.014 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(49ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(23ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1098u, 618u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 32.020 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(122ull)) ); // 32.027 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2975ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8194ull)) = descriptorSets[1u]; } // 32.032 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 112ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2975ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 144ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8194ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(472ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8194ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 32.037 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 1098.000000f; viewports[0u].height = 618.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 32.042 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 1098u, 618u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 32.047 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2975ull)), app.GetResource(DescriptorSetID(8194ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5339904u, 5340160u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 32.052 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 32.056 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 32.061 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 32.066 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass88 (const VApp &app) { // 32.082 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(49ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(83ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1098u, 618u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 32.088 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(25ull)) ); // 32.095 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(42ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(111ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2881ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7368ull)) = descriptorSets[1u]; } // 32.101 ms { VkWriteDescriptorSet descriptorWrites[4u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 112ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2881ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 160ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(7368ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(538ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7368ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(16ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7368ull)); descriptorWrites[3u].dstBinding = 2u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 4u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 32.106 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2881ull)), app.GetResource(DescriptorSetID(7368ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5340416u, 5340672u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(42ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 32.111 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 32.116 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 32.120 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 32.125 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass89 (const VApp &app) { // 32.137 ms { VkClearValue clearValues[1u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 1065353216u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 1.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(3ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(84ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 549u, 309u }; renderPassBeginInfo.clearValueCount = 1u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 32.144 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(123ull)) ); // 32.155 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(58ull)), app.GetResource(DescriptorSetLayoutID(59ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(111ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(2058ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8230ull)) = descriptorSets[1u]; } // 32.162 ms { VkWriteDescriptorSet descriptorWrites[4u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 96ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(2058ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 32ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(2058ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(247ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(2058ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(15ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(311ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8230ull)); descriptorWrites[3u].dstBinding = 0u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 4u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 32.167 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 549.000000f; viewports[0u].height = 234.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 32.172 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 549u, 234u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 32.176 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(2058ull)), app.GetResource(DescriptorSetID(8230ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5340928u, 5341184u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(66ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 32.181 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*vertexCount*/ 6u, /*instanceCount*/ 32117u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 32.186 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass90 (const VApp &app) { // 32.199 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(47ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(85ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 1098u, 618u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 32.209 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(124ull)) ); // 32.236 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(59ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(171ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(3331ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3080ull)) = descriptorSets[1u]; } // 32.243 ms { VkWriteDescriptorSet descriptorWrites[2u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(3331ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(472ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3080ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[1u].pImageInfo = imageInfo; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 2u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 32.248 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 1097.000000f; viewports[0u].height = 467.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 32.253 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 1097u, 467u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 32.258 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(3331ull)), app.GetResource(DescriptorSetID(3080ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5341440u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(63ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 32.263 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 32.268 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 32.272 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 32.277 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(125ull)) ); // 32.283 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(296ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5409ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(3882ull)) = descriptorSets[1u]; } // 32.289 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 48ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5409ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(3882ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(600ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(3882ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 32.295 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5409ull)), app.GetResource(DescriptorSetID(3882ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5341696u, 5341952u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 32.300 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 32.304 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 32.309 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 32.314 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5409ull)), app.GetResource(DescriptorSetID(3882ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5342208u, 5342464u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 32.319 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 32.324 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 32.329 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 32.334 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5409ull)), app.GetResource(DescriptorSetID(3882ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5342720u, 5342976u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 32.339 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 32.344 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 32.348 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 32.354 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5409ull)), app.GetResource(DescriptorSetID(3882ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5343232u, 5343488u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 32.359 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 32.364 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 32.368 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 32.373 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5409ull)), app.GetResource(DescriptorSetID(3882ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5343744u, 5344000u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 32.378 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 32.383 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 32.389 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 32.394 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5409ull)), app.GetResource(DescriptorSetID(3882ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5344256u, 5344512u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 32.399 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 32.403 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 32.408 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 32.413 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5409ull)), app.GetResource(DescriptorSetID(3882ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5344768u, 5345024u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 32.419 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 32.423 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 32.428 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 32.438 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5409ull)), app.GetResource(DescriptorSetID(3882ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5345280u, 5345536u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 32.444 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 32.448 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 32.453 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 6u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 32.458 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass91 (const VApp &app) { // 32.471 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(45ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(87ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 32u, 32u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 32.477 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(78ull)) ); // 32.485 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(14ull)), app.GetResource(DescriptorSetLayoutID(45ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(72ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(4882ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(4883ull)) = descriptorSets[1u]; } // 32.492 ms { VkWriteDescriptorSet descriptorWrites[5u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorBufferInfo bufferInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(4882ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(4882ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 768ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(4883ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_3[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_3[0u].offset = 0ull; bufferInfo_3[0u].range = 32ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(4883ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_3; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(306ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(4883ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 5u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 32.497 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 32.000000f; viewports[0u].height = 32.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 32.502 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 32u, 32u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 32.507 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(4882ull)), app.GetResource(DescriptorSetID(4883ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5345792u, 5346048u, 5346304u, 5347072u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 4u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(51ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 4u, /*pDynamicOffsets*/ dynamicOffsets ); } // 32.512 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 0ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 32.517 ms app.vkCmdDraw( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*vertexCount*/ 4u, /*instanceCount*/ 32u, /*firstVertex*/ 0u, /*firstInstance*/ 0u ); // 32.522 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass92 (const VApp &app) { // 32.546 ms { VkClearValue clearValues[1u] = {}; VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; // current clear value depends on render pass // .depthStencil = { 0.000000f, 0u } // .color.uint32 = { 0u, 0u, 0u, 0u } clearValues[0u].color = { 0.000000f, 0.000000f, 0.000000f, 0.000000f }; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(0ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(93ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2194u, 1234u }; renderPassBeginInfo.clearValueCount = 1u; renderPassBeginInfo.pClearValues = clearValues; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 32.553 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(126ull)) ); // 32.561 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(60ull)), app.GetResource(DescriptorSetLayoutID(62ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(294ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(5923ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(7550ull)) = descriptorSets[1u]; } // 32.567 ms { VkWriteDescriptorSet descriptorWrites[8u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; VkDescriptorImageInfo imageInfo_4[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 112ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(5923ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(369ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(5923ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[1u].pImageInfo = imageInfo; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 144ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(7550ull)); descriptorWrites[2u].dstBinding = 0u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_1; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 16ull; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(7550ull)); descriptorWrites[3u].dstBinding = 1u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = bufferInfo_2; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(127ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(7550ull)); descriptorWrites[4u].dstBinding = 2u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[4u].pImageInfo = imageInfo_1; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(602ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(7550ull)); descriptorWrites[5u].dstBinding = 3u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[5u].pImageInfo = imageInfo_2; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(601ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(7550ull)); descriptorWrites[6u].dstBinding = 4u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[6u].pImageInfo = imageInfo_3; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = null; descriptorWrites[7u].pNext = null; descriptorWrites[7u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_4[0u].sampler = app.GetResource(SamplerID(7ull)); imageInfo_4[0u].imageView = app.GetResource(ImageViewID(323ull)); imageInfo_4[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[7u].dstSet = app.GetResource(DescriptorSetID(7550ull)); descriptorWrites[7u].dstBinding = 5u; descriptorWrites[7u].dstArrayElement = 0u; descriptorWrites[7u].descriptorCount = 1u; descriptorWrites[7u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[7u].pImageInfo = imageInfo_4; descriptorWrites[7u].pBufferInfo = null; descriptorWrites[7u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 8u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 32.573 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 150.000000f; viewports[0u].width = 2194.000000f; viewports[0u].height = 934.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 32.577 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 150 }; scissors[0u].extent = { 2194u, 934u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 32.582 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(5923ull)), app.GetResource(DescriptorSetID(7550ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5347328u, 5347584u, 5347840u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(71ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } // 32.587 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(42ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 495616ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 32.592 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(42ull)), /*offset*/ 495360ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 32.597 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 3u, /*instanceCount*/ 1u, /*firstIndex*/ 6u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 32.602 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass93 (const VApp &app) { // 32.643 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(10ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(93ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2194u, 1234u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 32.651 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*pipeline*/ app.GetResource(PipelineID(155ull)) ); // 32.664 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(7ull)), app.GetResource(DescriptorSetLayoutID(8ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 2u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(298ull)); descriptorSetAllocateInfo.descriptorSetCount = 2u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[2u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8196ull)) = descriptorSets[0u]; app.EditResource(DescriptorSetID(8198ull)) = descriptorSets[1u]; } // 32.670 ms { VkWriteDescriptorSet descriptorWrites[3u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 80ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8196ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 48ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8198ull)); descriptorWrites[1u].dstBinding = 0u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(44ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8198ull)); descriptorWrites[2u].dstBinding = 1u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 3u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 32.675 ms { VkViewport viewports[1u] = {}; viewports[0u].x = 0.000000f; viewports[0u].y = 0.000000f; viewports[0u].width = 2194.000000f; viewports[0u].height = 1234.000000f; viewports[0u].minDepth = 0.000000f; viewports[0u].maxDepth = 1.000000f; app.vkCmdSetViewport( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstViewport*/ 0u, /*viewportCount*/ 1u, /*pViewports*/ viewports ); } // 32.680 ms { VkRect2D scissors[1u] = {}; scissors[0u].offset = { 0, 0 }; scissors[0u].extent = { 2194u, 1234u }; app.vkCmdSetScissor( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstScissor*/ 0u, /*scissorCount*/ 1u, /*pScissors*/ scissors ); } // 32.685 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8196ull)), app.GetResource(DescriptorSetID(8198ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 2u ); const uint32_t dynamicOffsets[] = { 5348096u, 5348352u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_GRAPHICS, /*layout*/ app.GetResource(PipelineLayoutID(0ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 2u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } // 32.690 ms { const VkBuffer buffers[] = { app.GetResource(BufferID(40ull)) }; STATIC_ASSERT( CountOf(buffers) == 1u ); const VkDeviceSize offsets[] = { 96768ull }; STATIC_ASSERT( CountOf(offsets) == 1u ); app.vkCmdBindVertexBuffers( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*firstBinding*/ 0u, /*bindingCount*/ 1u, /*pBuffers*/ buffers, /*pOffsets*/ offsets ); } // 32.695 ms app.vkCmdBindIndexBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*buffer*/ app.GetResource(BufferID(40ull)), /*offset*/ 97280ull, /*indexType*/ VK_INDEX_TYPE_UINT16 ); // 32.700 ms app.vkCmdDrawIndexed( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*indexCount*/ 12u, /*instanceCount*/ 1u, /*firstIndex*/ 0u, /*vertexOffset*/ 0, /*firstInstance*/ 0u ); // 32.704 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408_Pass94 (const VApp &app) { // 32.742 ms { VkRenderPassBeginInfo renderPassBeginInfo = {}; renderPassBeginInfo.pNext = null; renderPassBeginInfo.sType = VK_STRUCTURE_TYPE_RENDER_PASS_BEGIN_INFO; renderPassBeginInfo.renderPass = app.GetResource(RenderPassID(10ull)); renderPassBeginInfo.framebuffer = app.GetResource(FramebufferID(93ull)); renderPassBeginInfo.renderArea.offset = { 0, 0 }; renderPassBeginInfo.renderArea.extent = { 2194u, 1234u }; renderPassBeginInfo.clearValueCount = 0u; renderPassBeginInfo.pClearValues = null; app.vkCmdBeginRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pRenderPassBegin*/ &renderPassBeginInfo, /*contents*/ VK_SUBPASS_CONTENTS_INLINE ); } // 32.748 ms app.vkCmdEndRenderPass( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) ); } static void Frame1100_Thread11408 (const VApp &app) { // 0.000 ns { VkCommandBufferBeginInfo commandBufferBeginInfo = {}; commandBufferBeginInfo.pNext = null; commandBufferBeginInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; commandBufferBeginInfo.flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; commandBufferBeginInfo.pInheritanceInfo = null; VK_CALL( app.vkBeginCommandBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pBeginInfo*/ &commandBufferBeginInfo )); } // 14.600 us app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(4ull)), /*query*/ 10u ); // 29.100 us app.vkDestroyBuffer( /*device*/ app.GetResource(DeviceID(0ull)), /*buffer*/ app.GetResource(BufferID(4269ull)), /*pAllocator*/ null ); // 41.600 us app.vkDestroyBuffer( /*device*/ app.GetResource(DeviceID(0ull)), /*buffer*/ app.GetResource(BufferID(163ull)), /*pAllocator*/ null ); // 48.600 us app.vkDestroyBuffer( /*device*/ app.GetResource(DeviceID(0ull)), /*buffer*/ app.GetResource(BufferID(5089ull)), /*pAllocator*/ null ); // 65.600 us { VkImageMemoryBarrier imageMemoryBarriers[31u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(205ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(469ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; imageMemoryBarriers[2u].pNext = null; imageMemoryBarriers[2u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[2u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[2u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[2u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[2u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[2u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[2u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[2u].image = app.GetResource(ImageID(473ull)); imageMemoryBarriers[2u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[2u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[2u].subresourceRange.levelCount = 1u; imageMemoryBarriers[2u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[2u].subresourceRange.layerCount = 1u; imageMemoryBarriers[3u].pNext = null; imageMemoryBarriers[3u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[3u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[3u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[3u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[3u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[3u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[3u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[3u].image = app.GetResource(ImageID(238ull)); imageMemoryBarriers[3u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[3u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[3u].subresourceRange.levelCount = 1u; imageMemoryBarriers[3u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[3u].subresourceRange.layerCount = 1u; imageMemoryBarriers[4u].pNext = null; imageMemoryBarriers[4u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[4u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[4u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[4u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[4u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[4u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[4u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[4u].image = app.GetResource(ImageID(388ull)); imageMemoryBarriers[4u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[4u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[4u].subresourceRange.levelCount = 1u; imageMemoryBarriers[4u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[4u].subresourceRange.layerCount = 1u; imageMemoryBarriers[5u].pNext = null; imageMemoryBarriers[5u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[5u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[5u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[5u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[5u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[5u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[5u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[5u].image = app.GetResource(ImageID(474ull)); imageMemoryBarriers[5u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[5u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[5u].subresourceRange.levelCount = 1u; imageMemoryBarriers[5u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[5u].subresourceRange.layerCount = 1u; imageMemoryBarriers[6u].pNext = null; imageMemoryBarriers[6u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[6u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[6u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[6u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[6u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[6u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[6u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[6u].image = app.GetResource(ImageID(36ull)); imageMemoryBarriers[6u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[6u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[6u].subresourceRange.levelCount = 1u; imageMemoryBarriers[6u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[6u].subresourceRange.layerCount = 1u; imageMemoryBarriers[7u].pNext = null; imageMemoryBarriers[7u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[7u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[7u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[7u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[7u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[7u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[7u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[7u].image = app.GetResource(ImageID(46ull)); imageMemoryBarriers[7u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[7u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[7u].subresourceRange.levelCount = 1u; imageMemoryBarriers[7u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[7u].subresourceRange.layerCount = 1u; imageMemoryBarriers[8u].pNext = null; imageMemoryBarriers[8u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[8u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[8u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[8u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[8u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[8u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[8u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[8u].image = app.GetResource(ImageID(263ull)); imageMemoryBarriers[8u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[8u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[8u].subresourceRange.levelCount = 1u; imageMemoryBarriers[8u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[8u].subresourceRange.layerCount = 1u; imageMemoryBarriers[9u].pNext = null; imageMemoryBarriers[9u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[9u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[9u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[9u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[9u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[9u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[9u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[9u].image = app.GetResource(ImageID(472ull)); imageMemoryBarriers[9u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[9u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[9u].subresourceRange.levelCount = 1u; imageMemoryBarriers[9u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[9u].subresourceRange.layerCount = 1u; imageMemoryBarriers[10u].pNext = null; imageMemoryBarriers[10u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[10u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[10u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[10u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[10u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[10u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[10u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[10u].image = app.GetResource(ImageID(136ull)); imageMemoryBarriers[10u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[10u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[10u].subresourceRange.levelCount = 1u; imageMemoryBarriers[10u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[10u].subresourceRange.layerCount = 1u; imageMemoryBarriers[11u].pNext = null; imageMemoryBarriers[11u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[11u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[11u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[11u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[11u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[11u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[11u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[11u].image = app.GetResource(ImageID(320ull)); imageMemoryBarriers[11u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[11u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[11u].subresourceRange.levelCount = 1u; imageMemoryBarriers[11u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[11u].subresourceRange.layerCount = 1u; imageMemoryBarriers[12u].pNext = null; imageMemoryBarriers[12u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[12u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[12u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[12u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[12u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[12u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[12u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[12u].image = app.GetResource(ImageID(50ull)); imageMemoryBarriers[12u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[12u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[12u].subresourceRange.levelCount = 1u; imageMemoryBarriers[12u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[12u].subresourceRange.layerCount = 1u; imageMemoryBarriers[13u].pNext = null; imageMemoryBarriers[13u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[13u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[13u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[13u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[13u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[13u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[13u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[13u].image = app.GetResource(ImageID(476ull)); imageMemoryBarriers[13u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[13u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[13u].subresourceRange.levelCount = 1u; imageMemoryBarriers[13u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[13u].subresourceRange.layerCount = 1u; imageMemoryBarriers[14u].pNext = null; imageMemoryBarriers[14u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[14u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[14u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[14u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[14u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[14u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[14u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[14u].image = app.GetResource(ImageID(477ull)); imageMemoryBarriers[14u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[14u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[14u].subresourceRange.levelCount = 1u; imageMemoryBarriers[14u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[14u].subresourceRange.layerCount = 1u; imageMemoryBarriers[15u].pNext = null; imageMemoryBarriers[15u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[15u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[15u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[15u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[15u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[15u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[15u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[15u].image = app.GetResource(ImageID(435ull)); imageMemoryBarriers[15u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[15u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[15u].subresourceRange.levelCount = 1u; imageMemoryBarriers[15u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[15u].subresourceRange.layerCount = 1u; imageMemoryBarriers[16u].pNext = null; imageMemoryBarriers[16u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[16u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[16u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[16u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[16u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[16u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[16u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[16u].image = app.GetResource(ImageID(313ull)); imageMemoryBarriers[16u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[16u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[16u].subresourceRange.levelCount = 1u; imageMemoryBarriers[16u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[16u].subresourceRange.layerCount = 1u; imageMemoryBarriers[17u].pNext = null; imageMemoryBarriers[17u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[17u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[17u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[17u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[17u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[17u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[17u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[17u].image = app.GetResource(ImageID(479ull)); imageMemoryBarriers[17u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[17u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[17u].subresourceRange.levelCount = 1u; imageMemoryBarriers[17u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[17u].subresourceRange.layerCount = 1u; imageMemoryBarriers[18u].pNext = null; imageMemoryBarriers[18u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[18u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[18u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[18u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[18u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[18u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[18u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[18u].image = app.GetResource(ImageID(480ull)); imageMemoryBarriers[18u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[18u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[18u].subresourceRange.levelCount = 1u; imageMemoryBarriers[18u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[18u].subresourceRange.layerCount = 1u; imageMemoryBarriers[19u].pNext = null; imageMemoryBarriers[19u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[19u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[19u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[19u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[19u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[19u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[19u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[19u].image = app.GetResource(ImageID(534ull)); imageMemoryBarriers[19u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[19u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[19u].subresourceRange.levelCount = 1u; imageMemoryBarriers[19u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[19u].subresourceRange.layerCount = 1u; imageMemoryBarriers[20u].pNext = null; imageMemoryBarriers[20u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[20u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[20u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[20u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[20u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[20u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[20u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[20u].image = app.GetResource(ImageID(364ull)); imageMemoryBarriers[20u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[20u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[20u].subresourceRange.levelCount = 1u; imageMemoryBarriers[20u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[20u].subresourceRange.layerCount = 1u; imageMemoryBarriers[21u].pNext = null; imageMemoryBarriers[21u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[21u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[21u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[21u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[21u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[21u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[21u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[21u].image = app.GetResource(ImageID(410ull)); imageMemoryBarriers[21u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[21u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[21u].subresourceRange.levelCount = 1u; imageMemoryBarriers[21u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[21u].subresourceRange.layerCount = 1u; imageMemoryBarriers[22u].pNext = null; imageMemoryBarriers[22u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[22u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[22u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[22u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[22u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[22u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[22u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[22u].image = app.GetResource(ImageID(215ull)); imageMemoryBarriers[22u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[22u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[22u].subresourceRange.levelCount = 1u; imageMemoryBarriers[22u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[22u].subresourceRange.layerCount = 1u; imageMemoryBarriers[23u].pNext = null; imageMemoryBarriers[23u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[23u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[23u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[23u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[23u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[23u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[23u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[23u].image = app.GetResource(ImageID(27ull)); imageMemoryBarriers[23u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[23u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[23u].subresourceRange.levelCount = 1u; imageMemoryBarriers[23u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[23u].subresourceRange.layerCount = 1u; imageMemoryBarriers[24u].pNext = null; imageMemoryBarriers[24u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[24u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[24u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[24u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[24u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[24u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[24u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[24u].image = app.GetResource(ImageID(1ull)); imageMemoryBarriers[24u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[24u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[24u].subresourceRange.levelCount = 1u; imageMemoryBarriers[24u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[24u].subresourceRange.layerCount = 1u; imageMemoryBarriers[25u].pNext = null; imageMemoryBarriers[25u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[25u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[25u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[25u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[25u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[25u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[25u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[25u].image = app.GetResource(ImageID(406ull)); imageMemoryBarriers[25u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[25u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[25u].subresourceRange.levelCount = 1u; imageMemoryBarriers[25u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[25u].subresourceRange.layerCount = 1u; imageMemoryBarriers[26u].pNext = null; imageMemoryBarriers[26u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[26u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[26u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[26u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[26u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[26u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[26u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[26u].image = app.GetResource(ImageID(494ull)); imageMemoryBarriers[26u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[26u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[26u].subresourceRange.levelCount = 1u; imageMemoryBarriers[26u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[26u].subresourceRange.layerCount = 1u; imageMemoryBarriers[27u].pNext = null; imageMemoryBarriers[27u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[27u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[27u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[27u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[27u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[27u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[27u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[27u].image = app.GetResource(ImageID(129ull)); imageMemoryBarriers[27u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[27u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[27u].subresourceRange.levelCount = 1u; imageMemoryBarriers[27u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[27u].subresourceRange.layerCount = 1u; imageMemoryBarriers[28u].pNext = null; imageMemoryBarriers[28u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[28u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[28u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[28u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[28u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[28u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[28u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[28u].image = app.GetResource(ImageID(495ull)); imageMemoryBarriers[28u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[28u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[28u].subresourceRange.levelCount = 1u; imageMemoryBarriers[28u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[28u].subresourceRange.layerCount = 1u; imageMemoryBarriers[29u].pNext = null; imageMemoryBarriers[29u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[29u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[29u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[29u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[29u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[29u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[29u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[29u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[29u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[29u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[29u].subresourceRange.levelCount = 11u; imageMemoryBarriers[29u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[29u].subresourceRange.layerCount = 1u; imageMemoryBarriers[30u].pNext = null; imageMemoryBarriers[30u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[30u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[30u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[30u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[30u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[30u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[30u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[30u].image = app.GetResource(ImageID(532ull)); imageMemoryBarriers[30u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[30u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[30u].subresourceRange.levelCount = 1u; imageMemoryBarriers[30u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[30u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT | VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 31u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 75.900 us app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(166ull)), /*query*/ 1u ); // 81.700 us app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(166ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4956ull)), /*dstOffset*/ 8ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 87.000 us app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(166ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u ); // 0.412 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(121ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(366ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass0( app ); // 4.041 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(121ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(366ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 4.054 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(256ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(376ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass1( app ); // 6.926 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(256ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(376ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 6.934 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(256ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(376ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 6.942 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(121ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(366ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 6.949 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(121ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(366ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 6.955 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(256ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(376ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 6.960 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(232ull)), /*query*/ 1u ); // 6.966 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(232ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(63ull)), /*dstOffset*/ 8ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 6.972 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(232ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass2( app ); Frame1100_Thread11408_Pass3( app ); Frame1100_Thread11408_Pass4( app ); Frame1100_Thread11408_Pass5( app ); Frame1100_Thread11408_Pass6( app ); Frame1100_Thread11408_Pass7( app ); // 9.584 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(103ull)), /*query*/ 1u ); // 9.589 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(103ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5013ull)), /*dstOffset*/ 8ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 9.595 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(103ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u ); // 9.605 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(205ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 9.623 ms { VkBufferMemoryBarrier bufferMemoryBarriers[6u] = {}; bufferMemoryBarriers[0u].pNext = null; bufferMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; bufferMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].buffer = app.GetResource(BufferID(543ull)); bufferMemoryBarriers[0u].offset = 0ull; bufferMemoryBarriers[0u].size = 268800ull; bufferMemoryBarriers[1u].pNext = null; bufferMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; bufferMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[1u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[1u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[1u].buffer = app.GetResource(BufferID(543ull)); bufferMemoryBarriers[1u].offset = 268800ull; bufferMemoryBarriers[1u].size = 2150400ull; bufferMemoryBarriers[2u].pNext = null; bufferMemoryBarriers[2u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[2u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; bufferMemoryBarriers[2u].dstAccessMask = VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[2u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[2u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[2u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[2u].offset = 855296ull; bufferMemoryBarriers[2u].size = 4ull; bufferMemoryBarriers[3u].pNext = null; bufferMemoryBarriers[3u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[3u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; bufferMemoryBarriers[3u].dstAccessMask = VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[3u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[3u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[3u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[3u].offset = 855552ull; bufferMemoryBarriers[3u].size = 134400ull; bufferMemoryBarriers[4u].pNext = null; bufferMemoryBarriers[4u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[4u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; bufferMemoryBarriers[4u].dstAccessMask = VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[4u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[4u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[4u].buffer = app.GetResource(BufferID(4434ull)); bufferMemoryBarriers[4u].offset = 0ull; bufferMemoryBarriers[4u].size = 8601600ull; bufferMemoryBarriers[5u].pNext = null; bufferMemoryBarriers[5u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[5u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; bufferMemoryBarriers[5u].dstAccessMask = VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[5u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[5u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[5u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[5u].offset = 989952ull; bufferMemoryBarriers[5u].size = 4ull; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 6u, /*pBufferMemoryBarriers*/ bufferMemoryBarriers, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.633 ms { VkBufferMemoryBarrier bufferMemoryBarriers[1u] = {}; bufferMemoryBarriers[0u].pNext = null; bufferMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[0u].offset = 855552ull; bufferMemoryBarriers[0u].size = 134400ull; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 1u, /*pBufferMemoryBarriers*/ bufferMemoryBarriers, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.642 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(46ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(2ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1320ull)) = descriptorSets[0u]; } // 9.649 ms { VkWriteDescriptorSet descriptorWrites[2u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(28ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1320ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1320ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 2u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 9.655 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_COMPUTE, /*pipeline*/ app.GetResource(PipelineID(53ull)) ); // 9.668 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1320ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4791296u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_COMPUTE, /*layout*/ app.GetResource(PipelineLayoutID(32ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.673 ms app.vkCmdDispatch( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*groupCountX*/ 525u, /*groupCountY*/ 1u, /*groupCountZ*/ 1u ); // 9.679 ms { VkBufferMemoryBarrier bufferMemoryBarriers[1u] = {}; bufferMemoryBarriers[0u].pNext = null; bufferMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[0u].offset = 855552ull; bufferMemoryBarriers[0u].size = 134400ull; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 1u, /*pBufferMemoryBarriers*/ bufferMemoryBarriers, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.685 ms { VkMemoryBarrier memoryBarriers[1u] = {}; memoryBarriers[0u].pNext = null; memoryBarriers[0u].sType = VK_STRUCTURE_TYPE_MEMORY_BARRIER; memoryBarriers[0u].srcAccessMask = VK_ACCESS_INDIRECT_COMMAND_READ_BIT | VK_ACCESS_INDEX_READ_BIT | VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT | VK_ACCESS_UNIFORM_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT | VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT | VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_HOST_READ_BIT | VK_ACCESS_HOST_WRITE_BIT; memoryBarriers[0u].dstAccessMask = VK_ACCESS_INDIRECT_COMMAND_READ_BIT | VK_ACCESS_INDEX_READ_BIT | VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT | VK_ACCESS_UNIFORM_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT | VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT | VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_HOST_READ_BIT | VK_ACCESS_HOST_WRITE_BIT; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 1u, /*pMemoryBarriers*/ memoryBarriers, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.690 ms { VkBufferMemoryBarrier bufferMemoryBarriers[1u] = {}; bufferMemoryBarriers[0u].pNext = null; bufferMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[0u].offset = 855552ull; bufferMemoryBarriers[0u].size = 134400ull; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT | VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 1u, /*pBufferMemoryBarriers*/ bufferMemoryBarriers, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.696 ms { VkBufferMemoryBarrier bufferMemoryBarriers[1u] = {}; bufferMemoryBarriers[0u].pNext = null; bufferMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[0u].offset = 855296ull; bufferMemoryBarriers[0u].size = 4ull; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 1u, /*pBufferMemoryBarriers*/ bufferMemoryBarriers, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.701 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(46ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(2ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1333ull)) = descriptorSets[0u]; } // 9.706 ms { VkWriteDescriptorSet descriptorWrites[2u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(725ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1333ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1333ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 2u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 9.712 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_COMPUTE, /*pipeline*/ app.GetResource(PipelineID(53ull)) ); // 9.717 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1333ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4791552u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_COMPUTE, /*layout*/ app.GetResource(PipelineLayoutID(32ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.722 ms app.vkCmdDispatch( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*groupCountX*/ 1u, /*groupCountY*/ 1u, /*groupCountZ*/ 1u ); // 9.727 ms { VkBufferMemoryBarrier bufferMemoryBarriers[1u] = {}; bufferMemoryBarriers[0u].pNext = null; bufferMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[0u].offset = 855296ull; bufferMemoryBarriers[0u].size = 4ull; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 1u, /*pBufferMemoryBarriers*/ bufferMemoryBarriers, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.732 ms { VkMemoryBarrier memoryBarriers[1u] = {}; memoryBarriers[0u].pNext = null; memoryBarriers[0u].sType = VK_STRUCTURE_TYPE_MEMORY_BARRIER; memoryBarriers[0u].srcAccessMask = VK_ACCESS_INDIRECT_COMMAND_READ_BIT | VK_ACCESS_INDEX_READ_BIT | VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT | VK_ACCESS_UNIFORM_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT | VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT | VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_HOST_READ_BIT | VK_ACCESS_HOST_WRITE_BIT; memoryBarriers[0u].dstAccessMask = VK_ACCESS_INDIRECT_COMMAND_READ_BIT | VK_ACCESS_INDEX_READ_BIT | VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT | VK_ACCESS_UNIFORM_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT | VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT | VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_HOST_READ_BIT | VK_ACCESS_HOST_WRITE_BIT; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 1u, /*pMemoryBarriers*/ memoryBarriers, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.737 ms { VkBufferMemoryBarrier bufferMemoryBarriers[1u] = {}; bufferMemoryBarriers[0u].pNext = null; bufferMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[0u].offset = 855296ull; bufferMemoryBarriers[0u].size = 4ull; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT | VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 1u, /*pBufferMemoryBarriers*/ bufferMemoryBarriers, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.743 ms { VkBufferMemoryBarrier bufferMemoryBarriers[1u] = {}; bufferMemoryBarriers[0u].pNext = null; bufferMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[0u].offset = 989952ull; bufferMemoryBarriers[0u].size = 4ull; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 1u, /*pBufferMemoryBarriers*/ bufferMemoryBarriers, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.748 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(46ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(2ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1282ull)) = descriptorSets[0u]; } // 9.753 ms { VkWriteDescriptorSet descriptorWrites[2u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(727ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1282ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1282ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = null; descriptorWrites[1u].pTexelBufferView = texelBufferView; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 2u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 9.758 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_COMPUTE, /*pipeline*/ app.GetResource(PipelineID(53ull)) ); // 9.763 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1282ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4791552u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 1u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_COMPUTE, /*layout*/ app.GetResource(PipelineLayoutID(32ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 1u, /*pDynamicOffsets*/ dynamicOffsets ); } // 9.768 ms app.vkCmdDispatch( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*groupCountX*/ 1u, /*groupCountY*/ 1u, /*groupCountZ*/ 1u ); // 9.773 ms { VkBufferMemoryBarrier bufferMemoryBarriers[1u] = {}; bufferMemoryBarriers[0u].pNext = null; bufferMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[0u].offset = 989952ull; bufferMemoryBarriers[0u].size = 4ull; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 1u, /*pBufferMemoryBarriers*/ bufferMemoryBarriers, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.778 ms { VkMemoryBarrier memoryBarriers[1u] = {}; memoryBarriers[0u].pNext = null; memoryBarriers[0u].sType = VK_STRUCTURE_TYPE_MEMORY_BARRIER; memoryBarriers[0u].srcAccessMask = VK_ACCESS_INDIRECT_COMMAND_READ_BIT | VK_ACCESS_INDEX_READ_BIT | VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT | VK_ACCESS_UNIFORM_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT | VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT | VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_HOST_READ_BIT | VK_ACCESS_HOST_WRITE_BIT; memoryBarriers[0u].dstAccessMask = VK_ACCESS_INDIRECT_COMMAND_READ_BIT | VK_ACCESS_INDEX_READ_BIT | VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT | VK_ACCESS_UNIFORM_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT | VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT | VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_HOST_READ_BIT | VK_ACCESS_HOST_WRITE_BIT; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 1u, /*pMemoryBarriers*/ memoryBarriers, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.783 ms { VkBufferMemoryBarrier bufferMemoryBarriers[1u] = {}; bufferMemoryBarriers[0u].pNext = null; bufferMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[0u].offset = 989952ull; bufferMemoryBarriers[0u].size = 4ull; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT | VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 1u, /*pBufferMemoryBarriers*/ bufferMemoryBarriers, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.801 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(34ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(31ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1252ull)) = descriptorSets[0u]; } // 9.809 ms { VkWriteDescriptorSet descriptorWrites[7u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorBufferInfo bufferInfo_2[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(1235ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(573ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(28ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); const VkBufferView texelBufferView_3[] = { app.GetResource(BufferViewID(725ull)) }; STATIC_ASSERT( CountOf(texelBufferView_3) == 1u ); descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 5776ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1252ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1252ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_2[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_2[0u].offset = 0ull; bufferInfo_2[0u].range = 80ull; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1252ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = bufferInfo_2; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1252ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1252ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_1; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1252ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = texelBufferView_2; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1252ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER; descriptorWrites[6u].pImageInfo = null; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = texelBufferView_3; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 7u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 9.815 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_COMPUTE, /*pipeline*/ app.GetResource(PipelineID(79ull)) ); // 9.820 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1252ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4791808u, 4797696u, 4797952u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 3u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_COMPUTE, /*layout*/ app.GetResource(PipelineLayoutID(53ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 3u, /*pDynamicOffsets*/ dynamicOffsets ); } Frame1100_Thread11408_Pass8( app ); // 9.825 ms app.vkCmdDispatch( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*groupCountX*/ 9u, /*groupCountY*/ 4u, /*groupCountZ*/ 8u ); // 9.831 ms { VkBufferMemoryBarrier bufferMemoryBarriers[3u] = {}; bufferMemoryBarriers[0u].pNext = null; bufferMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[0u].offset = 855296ull; bufferMemoryBarriers[0u].size = 4ull; bufferMemoryBarriers[1u].pNext = null; bufferMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[1u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[1u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[1u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[1u].offset = 855552ull; bufferMemoryBarriers[1u].size = 134400ull; bufferMemoryBarriers[2u].pNext = null; bufferMemoryBarriers[2u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[2u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[2u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[2u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[2u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[2u].buffer = app.GetResource(BufferID(4434ull)); bufferMemoryBarriers[2u].offset = 0ull; bufferMemoryBarriers[2u].size = 8601600ull; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 3u, /*pBufferMemoryBarriers*/ bufferMemoryBarriers, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.836 ms { VkMemoryBarrier memoryBarriers[1u] = {}; memoryBarriers[0u].pNext = null; memoryBarriers[0u].sType = VK_STRUCTURE_TYPE_MEMORY_BARRIER; memoryBarriers[0u].srcAccessMask = VK_ACCESS_INDIRECT_COMMAND_READ_BIT | VK_ACCESS_INDEX_READ_BIT | VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT | VK_ACCESS_UNIFORM_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT | VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT | VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_HOST_READ_BIT | VK_ACCESS_HOST_WRITE_BIT; memoryBarriers[0u].dstAccessMask = VK_ACCESS_INDIRECT_COMMAND_READ_BIT | VK_ACCESS_INDEX_READ_BIT | VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT | VK_ACCESS_UNIFORM_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT | VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT | VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_HOST_READ_BIT | VK_ACCESS_HOST_WRITE_BIT; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 1u, /*pMemoryBarriers*/ memoryBarriers, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.842 ms { VkBufferMemoryBarrier bufferMemoryBarriers[3u] = {}; bufferMemoryBarriers[0u].pNext = null; bufferMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; bufferMemoryBarriers[0u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[0u].offset = 855296ull; bufferMemoryBarriers[0u].size = 4ull; bufferMemoryBarriers[1u].pNext = null; bufferMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; bufferMemoryBarriers[1u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[1u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[1u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[1u].offset = 855552ull; bufferMemoryBarriers[1u].size = 134400ull; bufferMemoryBarriers[2u].pNext = null; bufferMemoryBarriers[2u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[2u].srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[2u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; bufferMemoryBarriers[2u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[2u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[2u].buffer = app.GetResource(BufferID(4434ull)); bufferMemoryBarriers[2u].offset = 0ull; bufferMemoryBarriers[2u].size = 8601600ull; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 3u, /*pBufferMemoryBarriers*/ bufferMemoryBarriers, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.849 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(48ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(32ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(1339ull)) = descriptorSets[0u]; } // 9.855 ms { VkWriteDescriptorSet descriptorWrites[7u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; const VkBufferView texelBufferView[] = { app.GetResource(BufferViewID(626ull)) }; STATIC_ASSERT( CountOf(texelBufferView) == 1u ); const VkBufferView texelBufferView_1[] = { app.GetResource(BufferViewID(728ull)) }; STATIC_ASSERT( CountOf(texelBufferView_1) == 1u ); const VkBufferView texelBufferView_2[] = { app.GetResource(BufferViewID(727ull)) }; STATIC_ASSERT( CountOf(texelBufferView_2) == 1u ); const VkBufferView texelBufferView_3[] = { app.GetResource(BufferViewID(731ull)) }; STATIC_ASSERT( CountOf(texelBufferView_3) == 1u ); const VkBufferView texelBufferView_4[] = { app.GetResource(BufferViewID(163ull)) }; STATIC_ASSERT( CountOf(texelBufferView_4) == 1u ); descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 16ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(1339ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 48ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(1339ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(1339ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[2u].pImageInfo = null; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = texelBufferView; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(1339ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER; descriptorWrites[3u].pImageInfo = null; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = texelBufferView_1; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(1339ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER; descriptorWrites[4u].pImageInfo = null; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = texelBufferView_2; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(1339ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER; descriptorWrites[5u].pImageInfo = null; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = texelBufferView_3; descriptorWrites[6u].pNext = null; descriptorWrites[6u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; descriptorWrites[6u].dstSet = app.GetResource(DescriptorSetID(1339ull)); descriptorWrites[6u].dstBinding = 6u; descriptorWrites[6u].dstArrayElement = 0u; descriptorWrites[6u].descriptorCount = 1u; descriptorWrites[6u].descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER; descriptorWrites[6u].pImageInfo = null; descriptorWrites[6u].pBufferInfo = null; descriptorWrites[6u].pTexelBufferView = texelBufferView_4; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 7u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 9.861 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_COMPUTE, /*pipeline*/ app.GetResource(PipelineID(80ull)) ); // 9.866 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(1339ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 4798208u, 4798464u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_COMPUTE, /*layout*/ app.GetResource(PipelineLayoutID(54ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } Frame1100_Thread11408_Pass9( app ); // 9.871 ms app.vkCmdDispatch( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*groupCountX*/ 9u, /*groupCountY*/ 4u, /*groupCountZ*/ 8u ); // 9.876 ms { VkBufferMemoryBarrier bufferMemoryBarriers[3u] = {}; bufferMemoryBarriers[0u].pNext = null; bufferMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[0u].offset = 989952ull; bufferMemoryBarriers[0u].size = 4ull; bufferMemoryBarriers[1u].pNext = null; bufferMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[1u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[1u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[1u].buffer = app.GetResource(BufferID(543ull)); bufferMemoryBarriers[1u].offset = 0ull; bufferMemoryBarriers[1u].size = 268800ull; bufferMemoryBarriers[2u].pNext = null; bufferMemoryBarriers[2u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[2u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[2u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[2u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[2u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[2u].buffer = app.GetResource(BufferID(543ull)); bufferMemoryBarriers[2u].offset = 268800ull; bufferMemoryBarriers[2u].size = 2150400ull; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 3u, /*pBufferMemoryBarriers*/ bufferMemoryBarriers, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.881 ms { VkMemoryBarrier memoryBarriers[1u] = {}; memoryBarriers[0u].pNext = null; memoryBarriers[0u].sType = VK_STRUCTURE_TYPE_MEMORY_BARRIER; memoryBarriers[0u].srcAccessMask = VK_ACCESS_INDIRECT_COMMAND_READ_BIT | VK_ACCESS_INDEX_READ_BIT | VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT | VK_ACCESS_UNIFORM_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT | VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT | VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_HOST_READ_BIT | VK_ACCESS_HOST_WRITE_BIT; memoryBarriers[0u].dstAccessMask = VK_ACCESS_INDIRECT_COMMAND_READ_BIT | VK_ACCESS_INDEX_READ_BIT | VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT | VK_ACCESS_UNIFORM_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT | VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT | VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_HOST_READ_BIT | VK_ACCESS_HOST_WRITE_BIT; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 1u, /*pMemoryBarriers*/ memoryBarriers, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.886 ms { VkBufferMemoryBarrier bufferMemoryBarriers[3u] = {}; bufferMemoryBarriers[0u].pNext = null; bufferMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; bufferMemoryBarriers[0u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[0u].buffer = app.GetResource(BufferID(4849ull)); bufferMemoryBarriers[0u].offset = 989952ull; bufferMemoryBarriers[0u].size = 4ull; bufferMemoryBarriers[1u].pNext = null; bufferMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; bufferMemoryBarriers[1u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[1u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[1u].buffer = app.GetResource(BufferID(543ull)); bufferMemoryBarriers[1u].offset = 0ull; bufferMemoryBarriers[1u].size = 268800ull; bufferMemoryBarriers[2u].pNext = null; bufferMemoryBarriers[2u].sType = VK_STRUCTURE_TYPE_BUFFER_MEMORY_BARRIER; bufferMemoryBarriers[2u].srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT; bufferMemoryBarriers[2u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; bufferMemoryBarriers[2u].srcQueueFamilyIndex = 0u; bufferMemoryBarriers[2u].dstQueueFamilyIndex = 0u; bufferMemoryBarriers[2u].buffer = app.GetResource(BufferID(543ull)); bufferMemoryBarriers[2u].offset = 268800ull; bufferMemoryBarriers[2u].size = 2150400ull; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 3u, /*pBufferMemoryBarriers*/ bufferMemoryBarriers, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 9.893 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(305ull)), /*query*/ 3u ); // 9.898 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(305ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5014ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 9.903 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(305ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 9.911 ms VK_CALL( app.vkResetEvent( /*device*/ app.GetResource(DeviceID(0ull)), /*event*/ app.GetResource(EventID(268ull)) )); // 9.917 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(263ull)), /*firstQuery*/ 0u, /*queryCount*/ 256u ); // 9.922 ms app.vkCmdSetEvent( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*event*/ app.GetResource(EventID(268ull)), /*stageMask*/ VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT ); // 9.929 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(205ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass10( app ); // 10.315 ms VK_CALL( app.vkEndCommandBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) )); // 10.406 ms // 10.447 ms // 10.534 ms // 10.618 ms { app.LoadDataToMappedMemory( DeviceMemoryID(4ull), DataID(0u), 106496ull, 69632ull ); VkMappedMemoryRange memoryRanges[1u] = {}; memoryRanges[0u].pNext = null; memoryRanges[0u].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; memoryRanges[0u].memory = app.GetResource(DeviceMemoryID(4ull)); memoryRanges[0u].offset = 0ull; memoryRanges[0u].size = 4194304ull; VK_CALL( app.vkFlushMappedMemoryRanges( /*device*/ app.GetResource(DeviceID(0ull)), /*memoryRangeCount*/ 1u, /*pMemoryRanges*/ memoryRanges )); } // 10.706 ms { app.LoadDataToMappedMemory( DeviceMemoryID(9ull), DataID(1u), 0ull, 4096ull ); VkMappedMemoryRange memoryRanges[1u] = {}; memoryRanges[0u].pNext = null; memoryRanges[0u].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; memoryRanges[0u].memory = app.GetResource(DeviceMemoryID(9ull)); memoryRanges[0u].offset = 0ull; memoryRanges[0u].size = 4194304ull; VK_CALL( app.vkFlushMappedMemoryRanges( /*device*/ app.GetResource(DeviceID(0ull)), /*memoryRangeCount*/ 1u, /*pMemoryRanges*/ memoryRanges )); } // 10.838 ms { app.LoadDataToMappedMemory( DeviceMemoryID(10ull), DataID(2u), 0ull, 24576ull ); app.LoadDataToMappedMemory( DeviceMemoryID(10ull), DataID(3u), 32768ull, 4096ull ); app.LoadDataToMappedMemory( DeviceMemoryID(10ull), DataID(4u), 40960ull, 8192ull ); app.LoadDataToMappedMemory( DeviceMemoryID(10ull), DataID(5u), 61440ull, 8192ull ); app.LoadDataToMappedMemory( DeviceMemoryID(10ull), DataID(6u), 77824ull, 8192ull ); VkMappedMemoryRange memoryRanges[1u] = {}; memoryRanges[0u].pNext = null; memoryRanges[0u].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; memoryRanges[0u].memory = app.GetResource(DeviceMemoryID(10ull)); memoryRanges[0u].offset = 0ull; memoryRanges[0u].size = 33554432ull; VK_CALL( app.vkFlushMappedMemoryRanges( /*device*/ app.GetResource(DeviceID(0ull)), /*memoryRangeCount*/ 1u, /*pMemoryRanges*/ memoryRanges )); } // 11.020 ms { app.LoadDataToMappedMemory( DeviceMemoryID(12ull), DataID(7u), 4702208ull, 98304ull ); VkMappedMemoryRange memoryRanges[1u] = {}; memoryRanges[0u].pNext = null; memoryRanges[0u].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; memoryRanges[0u].memory = app.GetResource(DeviceMemoryID(12ull)); memoryRanges[0u].offset = 0ull; memoryRanges[0u].size = 16777216ull; VK_CALL( app.vkFlushMappedMemoryRanges( /*device*/ app.GetResource(DeviceID(0ull)), /*memoryRangeCount*/ 1u, /*pMemoryRanges*/ memoryRanges )); } // 11.189 ms // 11.287 ms // 11.386 ms { VkSubmitInfo submits[1u] = {}; const VkCommandBuffer commandBuffers[] = { app.GetResource(CommandBufferID(2ull)) }; STATIC_ASSERT( CountOf(commandBuffers) == 1u ); submits[0u].pNext = null; submits[0u].sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; submits[0u].waitSemaphoreCount = 0u; submits[0u].pWaitSemaphores = null; submits[0u].pWaitDstStageMask = null; submits[0u].commandBufferCount = 1u; submits[0u].pCommandBuffers = commandBuffers; submits[0u].signalSemaphoreCount = 0u; submits[0u].pSignalSemaphores = null; VK_CALL( app.vkQueueSubmit( /*queue*/ app.GetResource(QueueID(0ull)), /*submitCount*/ 1u, /*pSubmits*/ submits, /*fence*/ app.GetResource(FenceID(0ull)) )); } // 11.432 ms // 11.440 ms VK_CALL( app.vkResetCommandBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*flags*/ VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT )); // 11.447 ms { const VkFence fences[] = { app.GetResource(FenceID(38ull)) }; STATIC_ASSERT( CountOf(fences) == 1u ); VK_CALL( app.vkResetFences( /*device*/ app.GetResource(DeviceID(0ull)), /*fenceCount*/ 1u, /*pFences*/ fences )); } // 11.453 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(40ull)), /*flags*/ 0 )); // 11.459 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(42ull)), /*flags*/ 0 )); // 11.464 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(45ull)), /*flags*/ 0 )); // 11.468 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(44ull)), /*flags*/ 0 )); // 11.473 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(49ull)), /*flags*/ 0 )); // 11.477 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(51ull)), /*flags*/ 0 )); // 11.481 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(52ull)), /*flags*/ 0 )); // 11.486 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(55ull)), /*flags*/ 0 )); // 11.490 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(58ull)), /*flags*/ 0 )); // 11.495 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(56ull)), /*flags*/ 0 )); // 11.500 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(59ull)), /*flags*/ 0 )); // 11.504 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(60ull)), /*flags*/ 0 )); // 11.508 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(62ull)), /*flags*/ 0 )); // 11.513 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(6ull)), /*flags*/ 0 )); // 11.517 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(63ull)), /*flags*/ 0 )); // 11.522 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(66ull)), /*flags*/ 0 )); // 11.527 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(68ull)), /*flags*/ 0 )); // 11.531 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(67ull)), /*flags*/ 0 )); // 11.535 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(84ull)), /*flags*/ 0 )); // 11.540 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(87ull)), /*flags*/ 0 )); // 11.544 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(70ull)), /*flags*/ 0 )); // 11.549 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(73ull)), /*flags*/ 0 )); // 11.553 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(74ull)), /*flags*/ 0 )); // 11.558 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(76ull)), /*flags*/ 0 )); // 11.563 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(91ull)), /*flags*/ 0 )); // 11.567 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(92ull)), /*flags*/ 0 )); // 11.572 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(75ull)), /*flags*/ 0 )); // 11.576 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(79ull)), /*flags*/ 0 )); // 11.581 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(22ull)), /*flags*/ 0 )); // 11.585 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(21ull)), /*flags*/ 0 )); // 11.590 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(53ull)), /*flags*/ 0 )); // 11.595 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(81ull)), /*flags*/ 0 )); // 11.600 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(99ull)), /*flags*/ 0 )); // 11.604 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(35ull)), /*flags*/ 0 )); // 11.609 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(37ull)), /*flags*/ 0 )); // 11.613 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(83ull)), /*flags*/ 0 )); // 11.618 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(86ull)), /*flags*/ 0 )); // 11.622 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(90ull)), /*flags*/ 0 )); // 11.627 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(30ull)), /*flags*/ 0 )); // 11.631 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(97ull)), /*flags*/ 0 )); // 11.636 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(94ull)), /*flags*/ 0 )); // 11.640 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(25ull)), /*flags*/ 0 )); // 11.645 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(24ull)), /*flags*/ 0 )); // 11.650 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(354ull)), /*flags*/ 0 )); // 11.655 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(5ull)), /*flags*/ 0 )); // 11.659 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(12ull)), /*flags*/ 0 )); // 11.664 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(47ull)), /*flags*/ 0 )); // 11.668 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(78ull)), /*flags*/ 0 )); // 11.673 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(100ull)), /*flags*/ 0 )); // 11.677 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(353ull)), /*flags*/ 0 )); // 11.682 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(88ull)), /*flags*/ 0 )); // 11.686 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(36ull)), /*flags*/ 0 )); // 11.691 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(102ull)), /*flags*/ 0 )); // 11.695 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(103ull)), /*flags*/ 0 )); // 11.700 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(33ull)), /*flags*/ 0 )); // 11.705 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(0ull)), /*flags*/ 0 )); // 11.709 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(20ull)), /*flags*/ 0 )); // 11.714 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(105ull)), /*flags*/ 0 )); // 11.718 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(72ull)), /*flags*/ 0 )); // 11.723 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(106ull)), /*flags*/ 0 )); // 11.727 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(108ull)), /*flags*/ 0 )); // 11.732 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(111ull)), /*flags*/ 0 )); // 11.736 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(113ull)), /*flags*/ 0 )); // 11.741 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(115ull)), /*flags*/ 0 )); // 11.745 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(116ull)), /*flags*/ 0 )); // 11.750 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(117ull)), /*flags*/ 0 )); // 11.755 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(118ull)), /*flags*/ 0 )); // 11.759 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(119ull)), /*flags*/ 0 )); // 11.764 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(121ull)), /*flags*/ 0 )); // 11.769 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(14ull)), /*flags*/ 0 )); // 11.773 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(120ull)), /*flags*/ 0 )); // 11.778 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(7ull)), /*flags*/ 0 )); // 11.782 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(112ull)), /*flags*/ 0 )); // 11.787 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(123ull)), /*flags*/ 0 )); // 11.792 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(125ull)), /*flags*/ 0 )); // 11.797 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(165ull)), /*flags*/ 0 )); // 11.801 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(292ull)), /*flags*/ 0 )); // 11.806 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(89ull)), /*flags*/ 0 )); // 11.811 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(168ull)), /*flags*/ 0 )); // 11.815 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(133ull)), /*flags*/ 0 )); // 11.820 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(41ull)), /*flags*/ 0 )); // 11.825 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(171ull)), /*flags*/ 0 )); // 11.829 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(294ull)), /*flags*/ 0 )); // 11.834 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(295ull)), /*flags*/ 0 )); // 11.838 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(296ull)), /*flags*/ 0 )); // 11.843 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(298ull)), /*flags*/ 0 )); // 11.847 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(297ull)), /*flags*/ 0 )); // 11.851 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(180ull)), /*flags*/ 0 )); // 11.856 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(124ull)), /*flags*/ 0 )); // 11.861 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(352ull)), /*flags*/ 0 )); // 11.865 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(262ull)), /*flags*/ 0 )); // 11.870 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(299ull)), /*flags*/ 0 )); // 11.875 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(322ull)), /*flags*/ 0 )); // 11.880 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(312ull)), /*flags*/ 0 )); // 11.884 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(324ull)), /*flags*/ 0 )); // 11.889 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(325ull)), /*flags*/ 0 )); // 11.894 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(326ull)), /*flags*/ 0 )); // 11.898 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(327ull)), /*flags*/ 0 )); // 11.903 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(334ull)), /*flags*/ 0 )); // 11.908 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(247ull)), /*flags*/ 0 )); // 11.913 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(199ull)), /*flags*/ 0 )); // 11.917 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(320ull)), /*flags*/ 0 )); // 11.922 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(342ull)), /*flags*/ 0 )); // 11.927 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(343ull)), /*flags*/ 0 )); // 11.932 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(159ull)), /*flags*/ 0 )); // 11.936 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(206ull)), /*flags*/ 0 )); // 11.941 ms // 11.947 ms VK_CALL( app.vkResetCommandBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*flags*/ VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT )); // 11.951 ms { const VkFence fences[] = { app.GetResource(FenceID(0ull)) }; STATIC_ASSERT( CountOf(fences) == 1u ); VK_CALL( app.vkResetFences( /*device*/ app.GetResource(DeviceID(0ull)), /*fenceCount*/ 1u, /*pFences*/ fences )); } // 11.957 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(8ull)), /*flags*/ 0 )); // 11.961 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(18ull)), /*flags*/ 0 )); // 11.966 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(26ull)), /*flags*/ 0 )); // 11.970 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(167ull)), /*flags*/ 0 )); // 11.975 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(13ull)), /*flags*/ 0 )); // 11.979 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(23ull)), /*flags*/ 0 )); // 11.984 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(176ull)), /*flags*/ 0 )); // 11.989 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(16ull)), /*flags*/ 0 )); // 11.993 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(11ull)), /*flags*/ 0 )); // 11.997 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(28ull)), /*flags*/ 0 )); // 12.002 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(2ull)), /*flags*/ 0 )); // 12.006 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(31ull)), /*flags*/ 0 )); // 12.011 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(32ull)), /*flags*/ 0 )); // 12.015 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(127ull)), /*flags*/ 0 )); // 12.020 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(129ull)), /*flags*/ 0 )); // 12.025 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(138ull)), /*flags*/ 0 )); // 12.029 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(130ull)), /*flags*/ 0 )); // 12.034 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(132ull)), /*flags*/ 0 )); // 12.038 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(10ull)), /*flags*/ 0 )); // 12.043 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(134ull)), /*flags*/ 0 )); // 12.047 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(136ull)), /*flags*/ 0 )); // 12.052 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(98ull)), /*flags*/ 0 )); // 12.056 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(137ull)), /*flags*/ 0 )); // 12.061 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(96ull)), /*flags*/ 0 )); // 12.065 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(308ull)), /*flags*/ 0 )); // 12.070 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(139ull)), /*flags*/ 0 )); // 12.075 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(77ull)), /*flags*/ 0 )); // 12.079 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(319ull)), /*flags*/ 0 )); // 12.084 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(169ull)), /*flags*/ 0 )); // 12.088 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(172ull)), /*flags*/ 0 )); // 12.093 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(173ull)), /*flags*/ 0 )); // 12.097 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(174ull)), /*flags*/ 0 )); // 12.102 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(175ull)), /*flags*/ 0 )); // 12.106 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(178ull)), /*flags*/ 0 )); // 12.111 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(179ull)), /*flags*/ 0 )); // 12.115 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(104ull)), /*flags*/ 0 )); // 12.120 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(328ull)), /*flags*/ 0 )); // 12.124 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(181ull)), /*flags*/ 0 )); // 12.129 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(275ull)), /*flags*/ 0 )); // 12.133 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(182ull)), /*flags*/ 0 )); // 12.138 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(126ull)), /*flags*/ 0 )); // 12.143 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(184ull)), /*flags*/ 0 )); // 12.147 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(19ull)), /*flags*/ 0 )); // 12.152 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(186ull)), /*flags*/ 0 )); // 12.156 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(187ull)), /*flags*/ 0 )); // 12.161 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(189ull)), /*flags*/ 0 )); // 12.165 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(191ull)), /*flags*/ 0 )); // 12.170 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(46ull)), /*flags*/ 0 )); // 12.174 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(193ull)), /*flags*/ 0 )); // 12.178 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(194ull)), /*flags*/ 0 )); // 12.183 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(359ull)), /*flags*/ 0 )); // 12.188 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(152ull)), /*flags*/ 0 )); // 12.193 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(195ull)), /*flags*/ 0 )); // 12.197 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(196ull)), /*flags*/ 0 )); // 12.202 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(197ull)), /*flags*/ 0 )); // 12.206 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(318ull)), /*flags*/ 0 )); // 12.211 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(185ull)), /*flags*/ 0 )); // 12.216 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(198ull)), /*flags*/ 0 )); // 12.220 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(200ull)), /*flags*/ 0 )); // 12.225 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(203ull)), /*flags*/ 0 )); // 12.229 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(201ull)), /*flags*/ 0 )); // 12.234 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(285ull)), /*flags*/ 0 )); // 12.238 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(202ull)), /*flags*/ 0 )); // 12.243 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(204ull)), /*flags*/ 0 )); // 12.247 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(205ull)), /*flags*/ 0 )); // 12.252 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(207ull)), /*flags*/ 0 )); // 12.257 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(208ull)), /*flags*/ 0 )); // 12.262 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(210ull)), /*flags*/ 0 )); // 12.268 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(301ull)), /*flags*/ 0 )); // 12.273 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(164ull)), /*flags*/ 0 )); // 12.279 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(211ull)), /*flags*/ 0 )); // 12.284 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(213ull)), /*flags*/ 0 )); // 12.289 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(1ull)), /*flags*/ 0 )); // 12.293 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(214ull)), /*flags*/ 0 )); // 12.298 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(54ull)), /*flags*/ 0 )); // 12.302 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(304ull)), /*flags*/ 0 )); // 12.307 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(17ull)), /*flags*/ 0 )); // 12.311 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(215ull)), /*flags*/ 0 )); // 12.316 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(216ull)), /*flags*/ 0 )); // 12.321 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(140ull)), /*flags*/ 0 )); // 12.325 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(217ull)), /*flags*/ 0 )); // 12.330 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(218ull)), /*flags*/ 0 )); // 12.334 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(29ull)), /*flags*/ 0 )); // 12.339 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(219ull)), /*flags*/ 0 )); // 12.343 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(220ull)), /*flags*/ 0 )); // 12.348 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(221ull)), /*flags*/ 0 )); // 12.352 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(302ull)), /*flags*/ 0 )); // 12.357 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(107ull)), /*flags*/ 0 )); // 12.362 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(57ull)), /*flags*/ 0 )); // 12.366 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(222ull)), /*flags*/ 0 )); // 12.371 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(15ull)), /*flags*/ 0 )); // 12.375 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(236ull)), /*flags*/ 0 )); // 12.379 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(240ull)), /*flags*/ 0 )); // 12.380 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(237ull)), /*flags*/ 0 )); // 12.381 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(238ull)), /*flags*/ 0 )); // 12.382 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(239ull)), /*flags*/ 0 )); // 12.383 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(241ull)), /*flags*/ 0 )); // 12.384 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(242ull)), /*flags*/ 0 )); // 12.385 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(244ull)), /*flags*/ 0 )); // 12.386 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(250ull)), /*flags*/ 0 )); // 12.387 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(245ull)), /*flags*/ 0 )); // 12.388 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(246ull)), /*flags*/ 0 )); // 12.389 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(248ull)), /*flags*/ 0 )); // 12.390 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(154ull)), /*flags*/ 0 )); // 12.391 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(305ull)), /*flags*/ 0 )); // 12.392 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(336ull)), /*flags*/ 0 )); // 12.393 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(307ull)), /*flags*/ 0 )); // 12.394 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(311ull)), /*flags*/ 0 )); // 12.396 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(227ull)), /*flags*/ 0 )); // 12.397 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(321ull)), /*flags*/ 0 )); // 12.398 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(82ull)), /*flags*/ 0 )); // 12.399 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(64ull)), /*flags*/ 0 )); // 12.400 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(329ull)), /*flags*/ 0 )); // 12.401 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(335ull)), /*flags*/ 0 )); // 12.402 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(306ull)), /*flags*/ 0 )); // 12.404 ms { VkCommandBufferBeginInfo commandBufferBeginInfo = {}; commandBufferBeginInfo.pNext = null; commandBufferBeginInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; commandBufferBeginInfo.flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; commandBufferBeginInfo.pInheritanceInfo = null; VK_CALL( app.vkBeginCommandBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pBeginInfo*/ &commandBufferBeginInfo )); } // 12.406 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(307ull)), /*query*/ 3u ); // 12.408 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(307ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(2442ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 12.409 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(307ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 12.410 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(171ull)), /*query*/ 3u ); // 12.411 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(171ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5015ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 12.412 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(171ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 12.414 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(205ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass11( app ); // 12.450 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 11u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 12.453 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 1u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass12( app ); // 12.467 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 1u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 12.469 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 2u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass13( app ); // 12.480 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 2u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 12.482 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 3u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass14( app ); // 12.497 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 3u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 12.498 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 4u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass15( app ); // 12.510 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 4u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 12.511 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 5u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass16( app ); // 12.521 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 5u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 12.523 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 6u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass17( app ); // 12.533 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 6u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 12.534 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 7u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass18( app ); // 12.545 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 7u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 12.546 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 8u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass19( app ); // 12.558 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 8u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 12.559 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 9u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass20( app ); // 12.570 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 9u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 12.571 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 10u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass21( app ); // 12.581 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 10u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 12.582 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(496ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 11u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 12.583 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(110ull)), /*query*/ 3u ); // 12.585 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(110ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5016ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 12.586 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(110ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 12.587 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(75ull)), /*query*/ 3u ); // 12.587 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(75ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5017ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 12.588 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(75ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 12.590 ms VK_CALL( app.vkEndCommandBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) )); // 12.671 ms // 12.702 ms // 12.783 ms // 12.817 ms // 12.835 ms // 12.914 ms // 12.976 ms { app.LoadDataToMappedMemory( DeviceMemoryID(12ull), DataID(8u), 4796416ull, 8192ull ); VkMappedMemoryRange memoryRanges[1u] = {}; memoryRanges[0u].pNext = null; memoryRanges[0u].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; memoryRanges[0u].memory = app.GetResource(DeviceMemoryID(12ull)); memoryRanges[0u].offset = 0ull; memoryRanges[0u].size = 16777216ull; VK_CALL( app.vkFlushMappedMemoryRanges( /*device*/ app.GetResource(DeviceID(0ull)), /*memoryRangeCount*/ 1u, /*pMemoryRanges*/ memoryRanges )); } // 13.066 ms // 13.168 ms // 13.260 ms { VkSubmitInfo submits[1u] = {}; const VkCommandBuffer commandBuffers[] = { app.GetResource(CommandBufferID(2ull)) }; STATIC_ASSERT( CountOf(commandBuffers) == 1u ); submits[0u].pNext = null; submits[0u].sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; submits[0u].waitSemaphoreCount = 0u; submits[0u].pWaitSemaphores = null; submits[0u].pWaitDstStageMask = null; submits[0u].commandBufferCount = 1u; submits[0u].pCommandBuffers = commandBuffers; submits[0u].signalSemaphoreCount = 0u; submits[0u].pSignalSemaphores = null; VK_CALL( app.vkQueueSubmit( /*queue*/ app.GetResource(QueueID(0ull)), /*submitCount*/ 1u, /*pSubmits*/ submits, /*fence*/ app.GetResource(FenceID(0ull)) )); } // 13.308 ms { VkCommandBufferBeginInfo commandBufferBeginInfo = {}; commandBufferBeginInfo.pNext = null; commandBufferBeginInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; commandBufferBeginInfo.flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; commandBufferBeginInfo.pInheritanceInfo = null; VK_CALL( app.vkBeginCommandBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pBeginInfo*/ &commandBufferBeginInfo )); } // 13.321 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(5ull)), /*query*/ 3u ); // 13.323 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(5ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5018ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 13.324 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(5ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 13.327 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(308ull)), /*query*/ 3u ); // 13.328 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(308ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5019ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 13.329 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(308ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 13.330 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(309ull)), /*query*/ 3u ); // 13.331 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(309ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5020ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 13.332 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(309ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 13.334 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(310ull)), /*query*/ 3u ); // 13.335 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(310ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5021ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 13.336 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(310ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 13.342 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(205ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass22( app ); // 13.355 ms { VkImageMemoryBarrier imageMemoryBarriers[3u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(263ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(472ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; imageMemoryBarriers[2u].pNext = null; imageMemoryBarriers[2u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[2u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[2u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[2u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[2u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[2u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[2u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[2u].image = app.GetResource(ImageID(136ull)); imageMemoryBarriers[2u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[2u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[2u].subresourceRange.levelCount = 1u; imageMemoryBarriers[2u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[2u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 3u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 13.357 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(263ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 13.358 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(472ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 13.359 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(136ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 13.360 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(311ull)), /*query*/ 3u ); // 13.361 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(311ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5022ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 13.362 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(311ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass23( app ); // 13.377 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(313ull)), /*query*/ 3u ); // 13.378 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(313ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(115ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 13.379 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(313ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass24( app ); Frame1100_Thread11408_Pass25( app ); Frame1100_Thread11408_Pass26( app ); Frame1100_Thread11408_Pass27( app ); // 15.967 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(314ull)), /*query*/ 3u ); // 15.968 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(314ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(3915ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 15.970 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(314ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass28( app ); // 15.978 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(320ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 15.980 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(238ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 15.981 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(388ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 15.982 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(474ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 15.983 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(36ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 15.984 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(46ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 15.986 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(234ull)), /*query*/ 3u ); // 15.987 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(234ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(1847ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 15.988 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(234ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass29( app ); // 15.995 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(50ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 15.996 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(42ull)), /*query*/ 3u ); // 15.997 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(42ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5023ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 15.998 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(42ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 16.001 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(205ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.002 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(315ull)), /*query*/ 3u ); // 16.003 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(315ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(930ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.003 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(315ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 16.004 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(238ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.006 ms { VkImageMemoryBarrier imageMemoryBarriers[4u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(320ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(238ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; imageMemoryBarriers[2u].pNext = null; imageMemoryBarriers[2u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[2u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[2u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[2u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[2u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[2u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[2u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[2u].image = app.GetResource(ImageID(388ull)); imageMemoryBarriers[2u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[2u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[2u].subresourceRange.levelCount = 1u; imageMemoryBarriers[2u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[2u].subresourceRange.layerCount = 1u; imageMemoryBarriers[3u].pNext = null; imageMemoryBarriers[3u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[3u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[3u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[3u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[3u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[3u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[3u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[3u].image = app.GetResource(ImageID(474ull)); imageMemoryBarriers[3u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[3u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[3u].subresourceRange.levelCount = 1u; imageMemoryBarriers[3u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[3u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 4u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.009 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(205ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass30( app ); // 16.598 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(320ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.599 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(238ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.600 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(388ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.601 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(474ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.604 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(205ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass31( app ); // 16.610 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(108ull)), /*query*/ 3u ); // 16.611 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(108ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5024ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.612 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(108ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass32( app ); // 16.632 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(476ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.633 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(317ull)), /*query*/ 3u ); // 16.634 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(317ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5025ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.635 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(317ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 16.635 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(105ull)), /*query*/ 3u ); // 16.636 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(105ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5027ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.637 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(105ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass33( app ); // 16.651 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(477ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.652 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(319ull)), /*query*/ 3u ); // 16.653 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(319ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5028ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.654 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(319ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 16.654 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(320ull)), /*query*/ 3u ); // 16.655 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(320ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5029ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.656 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(320ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass34( app ); // 16.673 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(435ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.674 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(321ull)), /*query*/ 3u ); // 16.675 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(321ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5030ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.675 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(321ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 16.676 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(272ull)), /*query*/ 3u ); // 16.677 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(272ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5031ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.678 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(272ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass35( app ); // 16.692 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(313ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.693 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(135ull)), /*query*/ 3u ); // 16.694 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(135ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5032ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.695 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(135ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 16.695 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(82ull)), /*query*/ 3u ); // 16.696 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(82ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5033ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.697 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(82ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass36( app ); // 16.713 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(469ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.714 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(127ull)), /*query*/ 3u ); // 16.715 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(127ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4538ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.716 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(127ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 16.717 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(322ull)), /*query*/ 3u ); // 16.718 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(322ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(3833ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.718 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(322ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 16.720 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(320ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass37( app ); // 16.734 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(320ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.735 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(312ull)), /*query*/ 3u ); // 16.736 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(312ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(3804ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.737 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(312ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 16.737 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(316ull)), /*query*/ 3u ); // 16.738 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(316ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(3568ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.739 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(316ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass38( app ); // 16.748 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(205ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.749 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(323ull)), /*query*/ 3u ); // 16.750 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(323ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(1033ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.751 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(323ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 16.753 ms { VkImageMemoryBarrier imageMemoryBarriers[6u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(7ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(68ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; imageMemoryBarriers[2u].pNext = null; imageMemoryBarriers[2u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[2u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[2u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[2u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[2u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[2u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[2u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[2u].image = app.GetResource(ImageID(81ull)); imageMemoryBarriers[2u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[2u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[2u].subresourceRange.levelCount = 1u; imageMemoryBarriers[2u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[2u].subresourceRange.layerCount = 1u; imageMemoryBarriers[3u].pNext = null; imageMemoryBarriers[3u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[3u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[3u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[3u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[3u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[3u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[3u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[3u].image = app.GetResource(ImageID(271ull)); imageMemoryBarriers[3u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[3u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[3u].subresourceRange.levelCount = 1u; imageMemoryBarriers[3u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[3u].subresourceRange.layerCount = 1u; imageMemoryBarriers[4u].pNext = null; imageMemoryBarriers[4u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[4u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[4u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[4u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[4u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[4u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[4u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[4u].image = app.GetResource(ImageID(470ull)); imageMemoryBarriers[4u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[4u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[4u].subresourceRange.levelCount = 1u; imageMemoryBarriers[4u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[4u].subresourceRange.layerCount = 1u; imageMemoryBarriers[5u].pNext = null; imageMemoryBarriers[5u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[5u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[5u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[5u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[5u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[5u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[5u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[5u].image = app.GetResource(ImageID(471ull)); imageMemoryBarriers[5u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[5u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[5u].subresourceRange.levelCount = 1u; imageMemoryBarriers[5u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[5u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 6u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass39( app ); // 16.778 ms { VkImageMemoryBarrier imageMemoryBarriers[6u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(7ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(68ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; imageMemoryBarriers[2u].pNext = null; imageMemoryBarriers[2u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[2u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[2u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[2u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[2u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[2u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[2u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[2u].image = app.GetResource(ImageID(81ull)); imageMemoryBarriers[2u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[2u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[2u].subresourceRange.levelCount = 1u; imageMemoryBarriers[2u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[2u].subresourceRange.layerCount = 1u; imageMemoryBarriers[3u].pNext = null; imageMemoryBarriers[3u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[3u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[3u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[3u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[3u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[3u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[3u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[3u].image = app.GetResource(ImageID(271ull)); imageMemoryBarriers[3u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[3u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[3u].subresourceRange.levelCount = 1u; imageMemoryBarriers[3u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[3u].subresourceRange.layerCount = 1u; imageMemoryBarriers[4u].pNext = null; imageMemoryBarriers[4u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[4u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[4u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[4u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[4u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[4u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[4u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[4u].image = app.GetResource(ImageID(470ull)); imageMemoryBarriers[4u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[4u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[4u].subresourceRange.levelCount = 1u; imageMemoryBarriers[4u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[4u].subresourceRange.layerCount = 1u; imageMemoryBarriers[5u].pNext = null; imageMemoryBarriers[5u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[5u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[5u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[5u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[5u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[5u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[5u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[5u].image = app.GetResource(ImageID(471ull)); imageMemoryBarriers[5u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[5u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[5u].subresourceRange.levelCount = 1u; imageMemoryBarriers[5u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[5u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 6u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.779 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(175ull)), /*query*/ 3u ); // 16.780 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(175ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(588ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.781 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(175ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 16.782 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(324ull)), /*query*/ 3u ); // 16.783 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(324ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5034ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 16.784 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(324ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 16.785 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(320ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 16.787 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(205ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass40( app ); Frame1100_Thread11408_Pass41( app ); // 16.952 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(7ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(68ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass42( app ); // 17.310 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(7ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 17.314 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(68ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 17.316 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(81ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(271ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass43( app ); // 17.438 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(81ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 17.442 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(271ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 17.444 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(31ull)), /*query*/ 3u ); // 17.449 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(31ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5035ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 17.453 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(31ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 17.468 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(228ull)), /*query*/ 3u ); // 17.471 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(228ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(2239ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 17.472 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(228ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 17.476 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(470ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(471ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 17.480 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(7ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(68ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass44( app ); // 17.531 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(470ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(471ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 17.537 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(7ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(68ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 17.541 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(81ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(271ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass45( app ); // 17.569 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(7ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(68ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 17.573 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(11ull)), /*query*/ 3u ); // 17.574 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(11ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5036ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 17.576 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(11ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 17.585 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(236ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 17.588 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(326ull)), /*query*/ 3u ); // 17.590 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(326ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5037ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 17.593 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(326ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass46( app ); // 17.741 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(236ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 17.745 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(236ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 17.748 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(327ull)), /*query*/ 3u ); // 17.753 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(327ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4885ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 17.755 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(327ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 17.757 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(41ull)), /*query*/ 3u ); // 17.759 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(41ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5038ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 17.762 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(41ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass47( app ); // 18.010 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(320ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 18.017 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(328ull)), /*query*/ 3u ); // 18.022 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(328ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5039ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 18.024 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(328ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 18.032 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(320ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 18.056 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(329ull)), /*query*/ 3u ); // 18.061 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(329ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4038ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 18.064 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(329ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 18.071 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(330ull)), /*query*/ 3u ); // 18.075 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(330ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5040ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 18.080 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(330ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 18.099 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(320ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass48( app ); // 18.247 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(121ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(366ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass49( app ); // 20.534 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(245ull)), /*query*/ 3u ); // 20.539 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(245ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5045ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 20.543 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(245ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 20.554 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(352ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(348ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass50( app ); // 20.736 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(352ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 20.742 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(348ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 20.747 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(318ull)), /*query*/ 3u ); // 20.752 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(318ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5046ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 20.757 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(318ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 20.764 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(121ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(366ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 20.770 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(256ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(376ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass51( app ); // 23.026 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(256ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(376ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 23.033 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(256ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(376ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 23.054 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(335ull)), /*query*/ 3u ); // 23.061 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(335ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5049ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 23.066 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(335ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 23.072 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(15ull)), /*query*/ 0u ); // 23.078 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(15ull)), /*firstQuery*/ 0u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(3789ull)), /*dstOffset*/ 0ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 23.083 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(15ull)), /*firstQuery*/ 0u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass52( app ); Frame1100_Thread11408_Pass53( app ); // 24.400 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(18ull)), /*query*/ 0u ); // 24.401 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(18ull)), /*firstQuery*/ 0u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4852ull)), /*dstOffset*/ 0ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 24.404 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*queryPool*/ app.GetResource(QueryPoolID(18ull)), /*firstQuery*/ 0u, /*queryCount*/ 1u ); // 24.406 ms VK_CALL( app.vkEndCommandBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)) )); // 24.555 ms // 24.610 ms // 24.746 ms // 24.792 ms // 24.912 ms { app.LoadDataToMappedMemory( DeviceMemoryID(9ull), DataID(9u), 0ull, 98304ull ); VkMappedMemoryRange memoryRanges[1u] = {}; memoryRanges[0u].pNext = null; memoryRanges[0u].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; memoryRanges[0u].memory = app.GetResource(DeviceMemoryID(9ull)); memoryRanges[0u].offset = 0ull; memoryRanges[0u].size = 4194304ull; VK_CALL( app.vkFlushMappedMemoryRanges( /*device*/ app.GetResource(DeviceID(0ull)), /*memoryRangeCount*/ 1u, /*pMemoryRanges*/ memoryRanges )); } // 25.201 ms { app.LoadDataToMappedMemory( DeviceMemoryID(10ull), DataID(10u), 16384ull, 4096ull ); VkMappedMemoryRange memoryRanges[1u] = {}; memoryRanges[0u].pNext = null; memoryRanges[0u].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; memoryRanges[0u].memory = app.GetResource(DeviceMemoryID(10ull)); memoryRanges[0u].offset = 0ull; memoryRanges[0u].size = 33554432ull; VK_CALL( app.vkFlushMappedMemoryRanges( /*device*/ app.GetResource(DeviceID(0ull)), /*memoryRangeCount*/ 1u, /*pMemoryRanges*/ memoryRanges )); } // 25.671 ms { app.LoadDataToMappedMemory( DeviceMemoryID(12ull), DataID(11u), 4804608ull, 438272ull ); VkMappedMemoryRange memoryRanges[1u] = {}; memoryRanges[0u].pNext = null; memoryRanges[0u].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; memoryRanges[0u].memory = app.GetResource(DeviceMemoryID(12ull)); memoryRanges[0u].offset = 0ull; memoryRanges[0u].size = 16777216ull; VK_CALL( app.vkFlushMappedMemoryRanges( /*device*/ app.GetResource(DeviceID(0ull)), /*memoryRangeCount*/ 1u, /*pMemoryRanges*/ memoryRanges )); } // 26.116 ms // 26.221 ms // 26.325 ms { VkSubmitInfo submits[1u] = {}; const VkCommandBuffer commandBuffers[] = { app.GetResource(CommandBufferID(6ull)) }; STATIC_ASSERT( CountOf(commandBuffers) == 1u ); submits[0u].pNext = null; submits[0u].sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; submits[0u].waitSemaphoreCount = 0u; submits[0u].pWaitSemaphores = null; submits[0u].pWaitDstStageMask = null; submits[0u].commandBufferCount = 1u; submits[0u].pCommandBuffers = commandBuffers; submits[0u].signalSemaphoreCount = 0u; submits[0u].pSignalSemaphores = null; VK_CALL( app.vkQueueSubmit( /*queue*/ app.GetResource(QueueID(0ull)), /*submitCount*/ 1u, /*pSubmits*/ submits, /*fence*/ app.GetResource(FenceID(5ull)) )); } // 26.378 ms // 26.385 ms VK_CALL( app.vkResetCommandBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*flags*/ VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT )); // 26.391 ms { const VkFence fences[] = { app.GetResource(FenceID(0ull)) }; STATIC_ASSERT( CountOf(fences) == 1u ); VK_CALL( app.vkResetFences( /*device*/ app.GetResource(DeviceID(0ull)), /*fenceCount*/ 1u, /*pFences*/ fences )); } // 26.398 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(8ull)), /*flags*/ 0 )); // 26.403 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(18ull)), /*flags*/ 0 )); // 26.407 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(26ull)), /*flags*/ 0 )); // 26.413 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(167ull)), /*flags*/ 0 )); // 26.418 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(13ull)), /*flags*/ 0 )); // 26.422 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(23ull)), /*flags*/ 0 )); // 26.427 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(176ull)), /*flags*/ 0 )); // 26.431 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(16ull)), /*flags*/ 0 )); // 26.436 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(11ull)), /*flags*/ 0 )); // 26.441 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(28ull)), /*flags*/ 0 )); // 26.445 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(2ull)), /*flags*/ 0 )); // 26.450 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(31ull)), /*flags*/ 0 )); // 26.455 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(32ull)), /*flags*/ 0 )); // 26.459 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(127ull)), /*flags*/ 0 )); // 26.464 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(129ull)), /*flags*/ 0 )); // 26.469 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(138ull)), /*flags*/ 0 )); // 26.473 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(130ull)), /*flags*/ 0 )); // 26.478 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(132ull)), /*flags*/ 0 )); // 26.482 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(10ull)), /*flags*/ 0 )); // 26.487 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(134ull)), /*flags*/ 0 )); // 26.492 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(136ull)), /*flags*/ 0 )); // 26.496 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(98ull)), /*flags*/ 0 )); // 26.501 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(137ull)), /*flags*/ 0 )); // 26.505 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(96ull)), /*flags*/ 0 )); // 26.510 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(308ull)), /*flags*/ 0 )); // 26.515 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(139ull)), /*flags*/ 0 )); // 26.520 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(77ull)), /*flags*/ 0 )); // 26.525 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(319ull)), /*flags*/ 0 )); // 26.529 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(169ull)), /*flags*/ 0 )); // 26.534 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(172ull)), /*flags*/ 0 )); // 26.538 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(173ull)), /*flags*/ 0 )); // 26.543 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(174ull)), /*flags*/ 0 )); // 26.547 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(175ull)), /*flags*/ 0 )); // 26.552 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(178ull)), /*flags*/ 0 )); // 26.556 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(179ull)), /*flags*/ 0 )); // 26.561 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(104ull)), /*flags*/ 0 )); // 26.566 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(328ull)), /*flags*/ 0 )); // 26.570 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(181ull)), /*flags*/ 0 )); // 26.575 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(275ull)), /*flags*/ 0 )); // 26.579 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(182ull)), /*flags*/ 0 )); // 26.584 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(126ull)), /*flags*/ 0 )); // 26.589 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(184ull)), /*flags*/ 0 )); // 26.593 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(19ull)), /*flags*/ 0 )); // 26.598 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(186ull)), /*flags*/ 0 )); // 26.603 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(187ull)), /*flags*/ 0 )); // 26.607 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(189ull)), /*flags*/ 0 )); // 26.612 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(191ull)), /*flags*/ 0 )); // 26.616 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(46ull)), /*flags*/ 0 )); // 26.621 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(193ull)), /*flags*/ 0 )); // 26.625 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(194ull)), /*flags*/ 0 )); // 26.630 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(359ull)), /*flags*/ 0 )); // 26.634 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(152ull)), /*flags*/ 0 )); // 26.639 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(195ull)), /*flags*/ 0 )); // 26.643 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(196ull)), /*flags*/ 0 )); // 26.648 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(197ull)), /*flags*/ 0 )); // 26.652 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(318ull)), /*flags*/ 0 )); // 26.657 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(185ull)), /*flags*/ 0 )); // 26.662 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(198ull)), /*flags*/ 0 )); // 26.666 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(200ull)), /*flags*/ 0 )); // 26.671 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(203ull)), /*flags*/ 0 )); // 26.675 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(201ull)), /*flags*/ 0 )); // 26.680 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(285ull)), /*flags*/ 0 )); // 26.684 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(202ull)), /*flags*/ 0 )); // 26.689 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(204ull)), /*flags*/ 0 )); // 26.693 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(205ull)), /*flags*/ 0 )); // 26.698 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(207ull)), /*flags*/ 0 )); // 26.702 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(208ull)), /*flags*/ 0 )); // 26.707 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(210ull)), /*flags*/ 0 )); // 26.712 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(301ull)), /*flags*/ 0 )); // 26.716 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(164ull)), /*flags*/ 0 )); // 26.721 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(211ull)), /*flags*/ 0 )); // 26.725 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(213ull)), /*flags*/ 0 )); // 26.730 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(1ull)), /*flags*/ 0 )); // 26.734 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(214ull)), /*flags*/ 0 )); // 26.739 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(54ull)), /*flags*/ 0 )); // 26.744 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(304ull)), /*flags*/ 0 )); // 26.748 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(17ull)), /*flags*/ 0 )); // 26.753 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(215ull)), /*flags*/ 0 )); // 26.758 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(216ull)), /*flags*/ 0 )); // 26.762 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(140ull)), /*flags*/ 0 )); // 26.766 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(217ull)), /*flags*/ 0 )); // 26.771 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(218ull)), /*flags*/ 0 )); // 26.776 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(29ull)), /*flags*/ 0 )); // 26.780 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(219ull)), /*flags*/ 0 )); // 26.785 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(220ull)), /*flags*/ 0 )); // 26.789 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(221ull)), /*flags*/ 0 )); // 26.794 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(302ull)), /*flags*/ 0 )); // 26.798 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(107ull)), /*flags*/ 0 )); // 26.803 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(57ull)), /*flags*/ 0 )); // 26.808 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(222ull)), /*flags*/ 0 )); // 26.812 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(15ull)), /*flags*/ 0 )); // 26.817 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(236ull)), /*flags*/ 0 )); // 26.821 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(240ull)), /*flags*/ 0 )); // 26.826 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(237ull)), /*flags*/ 0 )); // 26.830 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(238ull)), /*flags*/ 0 )); // 26.835 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(239ull)), /*flags*/ 0 )); // 26.839 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(241ull)), /*flags*/ 0 )); // 26.844 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(242ull)), /*flags*/ 0 )); // 26.849 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(244ull)), /*flags*/ 0 )); // 26.856 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(250ull)), /*flags*/ 0 )); // 26.861 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(245ull)), /*flags*/ 0 )); // 26.865 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(246ull)), /*flags*/ 0 )); // 26.870 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(248ull)), /*flags*/ 0 )); // 26.875 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(154ull)), /*flags*/ 0 )); // 26.879 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(305ull)), /*flags*/ 0 )); // 26.884 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(336ull)), /*flags*/ 0 )); // 26.889 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(307ull)), /*flags*/ 0 )); // 26.893 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(311ull)), /*flags*/ 0 )); // 26.898 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(227ull)), /*flags*/ 0 )); // 26.903 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(321ull)), /*flags*/ 0 )); // 26.908 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(82ull)), /*flags*/ 0 )); // 26.913 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(64ull)), /*flags*/ 0 )); // 26.918 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(329ull)), /*flags*/ 0 )); // 26.922 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(335ull)), /*flags*/ 0 )); // 26.927 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(306ull)), /*flags*/ 0 )); // 26.933 ms { VkCommandBufferBeginInfo commandBufferBeginInfo = {}; commandBufferBeginInfo.pNext = null; commandBufferBeginInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; commandBufferBeginInfo.flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; commandBufferBeginInfo.pInheritanceInfo = null; VK_CALL( app.vkBeginCommandBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pBeginInfo*/ &commandBufferBeginInfo )); } // 26.951 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(336ull)), /*query*/ 3u ); // 26.957 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(336ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(2023ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 26.962 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(336ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 26.967 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(337ull)), /*query*/ 3u ); // 26.972 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(337ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(560ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 26.977 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(337ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 26.985 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(7ull)), /*query*/ 0u ); // 26.989 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(7ull)), /*firstQuery*/ 0u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4853ull)), /*dstOffset*/ 0ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 26.994 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(7ull)), /*firstQuery*/ 0u, /*queryCount*/ 1u ); // 27.002 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(262ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass54( app ); Frame1100_Thread11408_Pass55( app ); // 28.610 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(262ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 28.617 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(205ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 28.622 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(0ull)), /*query*/ 0u ); // 28.628 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(0ull)), /*firstQuery*/ 0u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4854ull)), /*dstOffset*/ 0ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 28.633 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*queryPool*/ app.GetResource(QueryPoolID(0ull)), /*firstQuery*/ 0u, /*queryCount*/ 1u ); // 28.639 ms VK_CALL( app.vkEndCommandBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)) )); // 28.726 ms // 28.763 ms // 28.856 ms // 28.889 ms // 28.912 ms // 29.003 ms // 29.118 ms { app.LoadDataToMappedMemory( DeviceMemoryID(12ull), DataID(12u), 5238784ull, 77824ull ); VkMappedMemoryRange memoryRanges[1u] = {}; memoryRanges[0u].pNext = null; memoryRanges[0u].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; memoryRanges[0u].memory = app.GetResource(DeviceMemoryID(12ull)); memoryRanges[0u].offset = 0ull; memoryRanges[0u].size = 16777216ull; VK_CALL( app.vkFlushMappedMemoryRanges( /*device*/ app.GetResource(DeviceID(0ull)), /*memoryRangeCount*/ 1u, /*pMemoryRanges*/ memoryRanges )); } // 29.277 ms // 29.378 ms // 29.476 ms { VkSubmitInfo submits[1u] = {}; const VkCommandBuffer commandBuffers[] = { app.GetResource(CommandBufferID(2ull)) }; STATIC_ASSERT( CountOf(commandBuffers) == 1u ); submits[0u].pNext = null; submits[0u].sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; submits[0u].waitSemaphoreCount = 0u; submits[0u].pWaitSemaphores = null; submits[0u].pWaitDstStageMask = null; submits[0u].commandBufferCount = 1u; submits[0u].pCommandBuffers = commandBuffers; submits[0u].signalSemaphoreCount = 0u; submits[0u].pSignalSemaphores = null; VK_CALL( app.vkQueueSubmit( /*queue*/ app.GetResource(QueueID(0ull)), /*submitCount*/ 1u, /*pSubmits*/ submits, /*fence*/ app.GetResource(FenceID(0ull)) )); } // 29.526 ms { VkCommandBufferBeginInfo commandBufferBeginInfo = {}; commandBufferBeginInfo.pNext = null; commandBufferBeginInfo.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_BEGIN_INFO; commandBufferBeginInfo.flags = VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT; commandBufferBeginInfo.pInheritanceInfo = null; VK_CALL( app.vkBeginCommandBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pBeginInfo*/ &commandBufferBeginInfo )); } // 29.545 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(338ull)), /*query*/ 3u ); // 29.550 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(338ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5050ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 29.556 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(338ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 29.562 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(16ull)), /*query*/ 3u ); // 29.567 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(16ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5051ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 29.572 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(16ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 29.581 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(205ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass56( app ); // 29.692 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(479ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 29.698 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(320ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 29.705 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(205ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass57( app ); // 29.761 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(480ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 29.766 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(320ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 29.772 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(205ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT | VK_IMAGE_ASPECT_STENCIL_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BIT | VK_PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass58( app ); // 29.824 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(339ull)), /*query*/ 3u ); // 29.829 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(339ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5052ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 29.834 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(339ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 29.843 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(320ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 29.849 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(259ull)), /*query*/ 1u ); // 29.854 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(259ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(3688ull)), /*dstOffset*/ 8ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 29.859 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(259ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass59( app ); // 29.971 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(532ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 29.976 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(533ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 29.981 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(24ull)), /*query*/ 2u ); // 29.986 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(24ull)), /*firstQuery*/ 2u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5000ull)), /*dstOffset*/ 16ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 29.991 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(24ull)), /*firstQuery*/ 2u, /*queryCount*/ 1u ); // 29.996 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(473ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass60( app ); // 30.063 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(533ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 30.069 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(289ull)), /*query*/ 2u ); // 30.073 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(289ull)), /*firstQuery*/ 2u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4999ull)), /*dstOffset*/ 16ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 30.078 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(289ull)), /*firstQuery*/ 2u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass61( app ); // 30.166 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(534ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 30.172 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(253ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass62( app ); // 30.288 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(253ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 30.294 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(97ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 30.299 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(196ull)), /*query*/ 3u ); // 30.304 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(196ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(2831ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 30.309 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(196ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 30.315 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(473ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass63( app ); // 30.412 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(97ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 30.417 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(210ull)), /*query*/ 3u ); // 30.422 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(210ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4945ull)), /*dstOffset*/ 24ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 30.427 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(210ull)), /*firstQuery*/ 3u, /*queryCount*/ 1u ); // 30.435 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_GENERAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(364ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 30.442 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_GENERAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(410ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 30.449 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(63ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(295ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8174ull)) = descriptorSets[0u]; } // 30.455 ms { VkWriteDescriptorSet descriptorWrites[6u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo_2[1u] = {}; VkDescriptorImageInfo imageInfo_3[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 96ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8174ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 16ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8174ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(308ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8174ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(556ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8174ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; descriptorWrites[4u].pNext = null; descriptorWrites[4u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_2[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_2[0u].imageView = app.GetResource(ImageViewID(611ull)); imageInfo_2[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[4u].dstSet = app.GetResource(DescriptorSetID(8174ull)); descriptorWrites[4u].dstBinding = 4u; descriptorWrites[4u].dstArrayElement = 0u; descriptorWrites[4u].descriptorCount = 1u; descriptorWrites[4u].descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_IMAGE; descriptorWrites[4u].pImageInfo = imageInfo_2; descriptorWrites[4u].pBufferInfo = null; descriptorWrites[4u].pTexelBufferView = null; descriptorWrites[5u].pNext = null; descriptorWrites[5u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_3[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_3[0u].imageView = app.GetResource(ImageViewID(610ull)); imageInfo_3[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[5u].dstSet = app.GetResource(DescriptorSetID(8174ull)); descriptorWrites[5u].dstBinding = 5u; descriptorWrites[5u].dstArrayElement = 0u; descriptorWrites[5u].descriptorCount = 1u; descriptorWrites[5u].descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_IMAGE; descriptorWrites[5u].pImageInfo = imageInfo_3; descriptorWrites[5u].pBufferInfo = null; descriptorWrites[5u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 6u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.461 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_COMPUTE, /*pipeline*/ app.GetResource(PipelineID(127ull)) ); // 30.470 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8174ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 5323008u, 5323264u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_COMPUTE, /*layout*/ app.GetResource(PipelineLayoutID(72ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } Frame1100_Thread11408_Pass64( app ); // 30.476 ms app.vkCmdDispatch( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*groupCountX*/ 138u, /*groupCountY*/ 59u, /*groupCountZ*/ 1u ); // 30.483 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_GENERAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_GENERAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(364ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_GENERAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_GENERAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(410ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 30.489 ms { VkMemoryBarrier memoryBarriers[1u] = {}; memoryBarriers[0u].pNext = null; memoryBarriers[0u].sType = VK_STRUCTURE_TYPE_MEMORY_BARRIER; memoryBarriers[0u].srcAccessMask = VK_ACCESS_INDIRECT_COMMAND_READ_BIT | VK_ACCESS_INDEX_READ_BIT | VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT | VK_ACCESS_UNIFORM_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT | VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT | VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_HOST_READ_BIT | VK_ACCESS_HOST_WRITE_BIT; memoryBarriers[0u].dstAccessMask = VK_ACCESS_INDIRECT_COMMAND_READ_BIT | VK_ACCESS_INDEX_READ_BIT | VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT | VK_ACCESS_UNIFORM_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT | VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT | VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_HOST_READ_BIT | VK_ACCESS_HOST_WRITE_BIT; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 1u, /*pMemoryBarriers*/ memoryBarriers, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 30.495 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_GENERAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(364ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 30.500 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_GENERAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(410ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass65( app ); // 30.595 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(215ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 30.600 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(51ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass66( app ); // 30.675 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(51ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 30.681 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(425ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass67( app ); // 30.749 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(425ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 30.756 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_GENERAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(27ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 30.763 ms { const VkDescriptorSetLayout setLayouts[] = { app.GetResource(DescriptorSetLayoutID(49ull)) }; STATIC_ASSERT( CountOf(setLayouts) == 1u ); VkDescriptorSetAllocateInfo descriptorSetAllocateInfo = {}; descriptorSetAllocateInfo.pNext = null; descriptorSetAllocateInfo.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_SET_ALLOCATE_INFO; descriptorSetAllocateInfo.descriptorPool = app.GetResource(DescriptorPoolID(180ull)); descriptorSetAllocateInfo.descriptorSetCount = 1u; descriptorSetAllocateInfo.pSetLayouts = setLayouts; VkDescriptorSet descriptorSets[1u] = {}; VK_CALL( app.vkAllocateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*pAllocateInfo*/ &descriptorSetAllocateInfo, /*pDescriptorSets*/ descriptorSets )); app.EditResource(DescriptorSetID(8178ull)) = descriptorSets[0u]; } // 30.769 ms { VkWriteDescriptorSet descriptorWrites[4u] = {}; VkDescriptorBufferInfo bufferInfo[1u] = {}; VkDescriptorBufferInfo bufferInfo_1[1u] = {}; VkDescriptorImageInfo imageInfo[1u] = {}; VkDescriptorImageInfo imageInfo_1[1u] = {}; descriptorWrites[0u].pNext = null; descriptorWrites[0u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo[0u].offset = 0ull; bufferInfo[0u].range = 80ull; descriptorWrites[0u].dstSet = app.GetResource(DescriptorSetID(8178ull)); descriptorWrites[0u].dstBinding = 0u; descriptorWrites[0u].dstArrayElement = 0u; descriptorWrites[0u].descriptorCount = 1u; descriptorWrites[0u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[0u].pImageInfo = null; descriptorWrites[0u].pBufferInfo = bufferInfo; descriptorWrites[0u].pTexelBufferView = null; descriptorWrites[1u].pNext = null; descriptorWrites[1u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; bufferInfo_1[0u].buffer = app.GetResource(BufferID(18ull)); bufferInfo_1[0u].offset = 0ull; bufferInfo_1[0u].range = 32ull; descriptorWrites[1u].dstSet = app.GetResource(DescriptorSetID(8178ull)); descriptorWrites[1u].dstBinding = 1u; descriptorWrites[1u].dstArrayElement = 0u; descriptorWrites[1u].descriptorCount = 1u; descriptorWrites[1u].descriptorType = VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC; descriptorWrites[1u].pImageInfo = null; descriptorWrites[1u].pBufferInfo = bufferInfo_1; descriptorWrites[1u].pTexelBufferView = null; descriptorWrites[2u].pNext = null; descriptorWrites[2u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo[0u].imageView = app.GetResource(ImageViewID(16ull)); imageInfo[0u].imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; descriptorWrites[2u].dstSet = app.GetResource(DescriptorSetID(8178ull)); descriptorWrites[2u].dstBinding = 2u; descriptorWrites[2u].dstArrayElement = 0u; descriptorWrites[2u].descriptorCount = 1u; descriptorWrites[2u].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER; descriptorWrites[2u].pImageInfo = imageInfo; descriptorWrites[2u].pBufferInfo = null; descriptorWrites[2u].pTexelBufferView = null; descriptorWrites[3u].pNext = null; descriptorWrites[3u].sType = VK_STRUCTURE_TYPE_WRITE_DESCRIPTOR_SET; imageInfo_1[0u].sampler = app.GetResource(SamplerID(1ull)); imageInfo_1[0u].imageView = app.GetResource(ImageViewID(190ull)); imageInfo_1[0u].imageLayout = VK_IMAGE_LAYOUT_GENERAL; descriptorWrites[3u].dstSet = app.GetResource(DescriptorSetID(8178ull)); descriptorWrites[3u].dstBinding = 3u; descriptorWrites[3u].dstArrayElement = 0u; descriptorWrites[3u].descriptorCount = 1u; descriptorWrites[3u].descriptorType = VK_DESCRIPTOR_TYPE_STORAGE_IMAGE; descriptorWrites[3u].pImageInfo = imageInfo_1; descriptorWrites[3u].pBufferInfo = null; descriptorWrites[3u].pTexelBufferView = null; app.vkUpdateDescriptorSets( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorWriteCount*/ 4u, /*pDescriptorWrites*/ descriptorWrites, /*descriptorCopyCount*/ 0u, /*pDescriptorCopies*/ null ); } // 30.774 ms app.vkCmdBindPipeline( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_COMPUTE, /*pipeline*/ app.GetResource(PipelineID(27ull)) ); // 30.780 ms { const VkDescriptorSet descriptorSets[] = { app.GetResource(DescriptorSetID(8178ull)) }; STATIC_ASSERT( CountOf(descriptorSets) == 1u ); const uint32_t dynamicOffsets[] = { 5325824u, 5326080u }; STATIC_ASSERT( CountOf(dynamicOffsets) == 2u ); app.vkCmdBindDescriptorSets( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineBindPoint*/ VK_PIPELINE_BIND_POINT_COMPUTE, /*layout*/ app.GetResource(PipelineLayoutID(73ull)), /*firstSet*/ 0u, /*descriptorSetCount*/ 1u, /*pDescriptorSets*/ descriptorSets, /*dynamicOffsetCount*/ 2u, /*pDynamicOffsets*/ dynamicOffsets ); } Frame1100_Thread11408_Pass68( app ); // 30.785 ms app.vkCmdDispatch( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*groupCountX*/ 18u, /*groupCountY*/ 15u, /*groupCountZ*/ 1u ); // 30.790 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_GENERAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_GENERAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(27ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 30.796 ms { VkMemoryBarrier memoryBarriers[1u] = {}; memoryBarriers[0u].pNext = null; memoryBarriers[0u].sType = VK_STRUCTURE_TYPE_MEMORY_BARRIER; memoryBarriers[0u].srcAccessMask = VK_ACCESS_INDIRECT_COMMAND_READ_BIT | VK_ACCESS_INDEX_READ_BIT | VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT | VK_ACCESS_UNIFORM_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT | VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT | VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_HOST_READ_BIT | VK_ACCESS_HOST_WRITE_BIT; memoryBarriers[0u].dstAccessMask = VK_ACCESS_INDIRECT_COMMAND_READ_BIT | VK_ACCESS_INDEX_READ_BIT | VK_ACCESS_VERTEX_ATTRIBUTE_READ_BIT | VK_ACCESS_UNIFORM_READ_BIT | VK_ACCESS_INPUT_ATTACHMENT_READ_BIT | VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT | VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_READ_BIT | VK_ACCESS_DEPTH_STENCIL_ATTACHMENT_WRITE_BIT | VK_ACCESS_TRANSFER_READ_BIT | VK_ACCESS_TRANSFER_WRITE_BIT | VK_ACCESS_HOST_READ_BIT | VK_ACCESS_HOST_WRITE_BIT; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_ALL_COMMANDS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 1u, /*pMemoryBarriers*/ memoryBarriers, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 0u, /*pImageMemoryBarriers*/ null ); } // 30.801 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_GENERAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(27ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass69( app ); // 30.870 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(1ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass70( app ); // 30.934 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(406ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 30.939 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(493ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass71( app ); // 31.004 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(493ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.009 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(493ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.015 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(254ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass72( app ); // 31.078 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(254ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.083 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(44ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass73( app ); // 31.146 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(44ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.152 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(484ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass74( app ); // 31.213 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(484ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.218 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(486ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass75( app ); // 31.276 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(486ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.281 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(384ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass76( app ); // 31.338 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(384ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.343 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(487ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass77( app ); // 31.406 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(487ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.411 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(246ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass78( app ); // 31.475 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(246ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.480 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(488ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass79( app ); // 31.538 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(488ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.543 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(489ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass80( app ); // 31.606 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(489ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.611 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(490ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass81( app ); // 31.675 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(490ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.680 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(484ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass82( app ); // 31.749 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(484ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.755 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(491ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass83( app ); // 31.818 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(491ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.823 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(44ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass84( app ); // 31.877 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(44ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.882 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(145ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass85( app ); // 31.944 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(145ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 31.949 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(492ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass86( app ); // 32.003 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(492ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 32.008 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(425ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass87( app ); // 32.071 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(425ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 32.077 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(493ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass88( app ); // 32.131 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(493ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass89( app ); // 32.192 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(494ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass90( app ); // 32.464 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(129ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass91( app ); // 32.528 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(495ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 32.534 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(144ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 32.539 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(406ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } Frame1100_Thread11408_Pass92( app ); // 32.608 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(325ull)), /*query*/ 1u ); // 32.613 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(325ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4652ull)), /*dstOffset*/ 8ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 32.618 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(325ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u ); // 32.627 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(220ull)), /*query*/ 1u ); // 32.632 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(220ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4957ull)), /*dstOffset*/ 8ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 32.637 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(220ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass93( app ); // 32.710 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(188ull)), /*query*/ 1u ); // 32.716 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(188ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(1158ull)), /*dstOffset*/ 8ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 32.721 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(188ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u ); // 32.726 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(222ull)), /*query*/ 2u ); // 32.731 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(222ull)), /*firstQuery*/ 2u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4959ull)), /*dstOffset*/ 16ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 32.736 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(222ull)), /*firstQuery*/ 2u, /*queryCount*/ 1u ); Frame1100_Thread11408_Pass94( app ); // 32.754 ms { VkImageMemoryBarrier imageMemoryBarriers[1u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(144ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 1u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 32.760 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(221ull)), /*query*/ 2u ); // 32.765 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(221ull)), /*firstQuery*/ 2u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(4958ull)), /*dstOffset*/ 16ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 32.770 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(221ull)), /*firstQuery*/ 2u, /*queryCount*/ 1u ); // 32.775 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(346ull)), /*query*/ 1u ); // 32.780 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(346ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u, /*dstBuffer*/ app.GetResource(BufferID(5076ull)), /*dstOffset*/ 8ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 32.785 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(346ull)), /*firstQuery*/ 1u, /*queryCount*/ 1u ); // 32.790 ms app.vkCmdWriteTimestamp( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*pipelineStage*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, /*queryPool*/ app.GetResource(QueryPoolID(4ull)), /*query*/ 11u ); // 32.795 ms app.vkCmdCopyQueryPoolResults( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(4ull)), /*firstQuery*/ 10u, /*queryCount*/ 2u, /*dstBuffer*/ app.GetResource(BufferID(47ull)), /*dstOffset*/ 80ull, /*stride*/ 8ull, /*flags*/ VK_QUERY_RESULT_64_BIT ); // 32.800 ms app.vkCmdResetQueryPool( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*queryPool*/ app.GetResource(QueryPoolID(4ull)), /*firstQuery*/ 10u, /*queryCount*/ 2u ); // 32.806 ms { const VkFence fences[] = { app.GetResource(FenceID(8ull)) }; STATIC_ASSERT( CountOf(fences) == 1u ); VK_CALL( app.vkResetFences( /*device*/ app.GetResource(DeviceID(0ull)), /*fenceCount*/ 1u, /*pFences*/ fences )); } // 32.812 ms CHECK( app.AcquireImage( ImageID(41ull), SemaphoreID(8ull) )); // 32.820 ms { const VkFence fences[] = { app.GetResource(FenceID(8ull)) }; STATIC_ASSERT( CountOf(fences) == 1u ); VK_CALL( app.vkWaitForFences( /*device*/ app.GetResource(DeviceID(0ull)), /*fenceCount*/ 1u, /*pFences*/ fences, /*waitAll*/ true, /*timeout*/ 18446744073709551615ull )); } // 32.828 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_TRANSFER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(144ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = 0; imageMemoryBarriers[1u].dstAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_UNDEFINED; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(41ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT | VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_TRANSFER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 32.834 ms { VkImageCopy regions[1u] = {}; regions[0u].srcSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; regions[0u].srcSubresource.mipLevel = 0u; regions[0u].srcSubresource.baseArrayLayer = 0u; regions[0u].srcSubresource.layerCount = 1u; regions[0u].srcOffset = { 0, 0, 0 }; regions[0u].dstSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; regions[0u].dstSubresource.mipLevel = 0u; regions[0u].dstSubresource.baseArrayLayer = 0u; regions[0u].dstSubresource.layerCount = 1u; regions[0u].dstOffset = { 0, 0, 0 }; regions[0u].extent = { 2194u, 1234u, 1u }; app.vkCmdCopyImage( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcImage*/ app.GetResource(ImageID(144ull)), /*srcImageLayout*/ VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL, /*dstImage*/ app.GetResource(ImageID(41ull)), /*dstImageLayout*/ VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL, /*regionCount*/ 1u, /*pRegions*/ regions ); } // 32.842 ms { VkImageMemoryBarrier imageMemoryBarriers[2u] = {}; imageMemoryBarriers[0u].pNext = null; imageMemoryBarriers[0u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[0u].srcAccessMask = VK_ACCESS_TRANSFER_READ_BIT; imageMemoryBarriers[0u].dstAccessMask = VK_ACCESS_SHADER_READ_BIT; imageMemoryBarriers[0u].oldLayout = VK_IMAGE_LAYOUT_TRANSFER_SRC_OPTIMAL; imageMemoryBarriers[0u].newLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; imageMemoryBarriers[0u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[0u].image = app.GetResource(ImageID(144ull)); imageMemoryBarriers[0u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[0u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[0u].subresourceRange.levelCount = 1u; imageMemoryBarriers[0u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[0u].subresourceRange.layerCount = 1u; imageMemoryBarriers[1u].pNext = null; imageMemoryBarriers[1u].sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER; imageMemoryBarriers[1u].srcAccessMask = VK_ACCESS_TRANSFER_WRITE_BIT; imageMemoryBarriers[1u].dstAccessMask = 0; imageMemoryBarriers[1u].oldLayout = VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL; imageMemoryBarriers[1u].newLayout = VK_IMAGE_LAYOUT_PRESENT_SRC_KHR; imageMemoryBarriers[1u].srcQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].dstQueueFamilyIndex = 4294967295u; imageMemoryBarriers[1u].image = app.GetResource(ImageID(41ull)); imageMemoryBarriers[1u].subresourceRange.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT; imageMemoryBarriers[1u].subresourceRange.baseMipLevel = 0u; imageMemoryBarriers[1u].subresourceRange.levelCount = 1u; imageMemoryBarriers[1u].subresourceRange.baseArrayLayer = 0u; imageMemoryBarriers[1u].subresourceRange.layerCount = 1u; app.vkCmdPipelineBarrier( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)), /*srcStageMask*/ VK_PIPELINE_STAGE_TRANSFER_BIT, /*dstStageMask*/ VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT | VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, /*dependencyFlags*/ 0, /*memoryBarrierCount*/ 0u, /*pMemoryBarriers*/ null, /*bufferMemoryBarrierCount*/ 0u, /*pBufferMemoryBarriers*/ null, /*imageMemoryBarrierCount*/ 2u, /*pImageMemoryBarriers*/ imageMemoryBarriers ); } // 32.848 ms VK_CALL( app.vkEndCommandBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(34ull)) )); // 32.934 ms // 32.971 ms // 33.063 ms // 33.097 ms // 33.123 ms { app.LoadDataToMappedMemory( DeviceMemoryID(9ull), DataID(13u), 94208ull, 4096ull ); VkMappedMemoryRange memoryRanges[1u] = {}; memoryRanges[0u].pNext = null; memoryRanges[0u].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; memoryRanges[0u].memory = app.GetResource(DeviceMemoryID(9ull)); memoryRanges[0u].offset = 0ull; memoryRanges[0u].size = 4194304ull; VK_CALL( app.vkFlushMappedMemoryRanges( /*device*/ app.GetResource(DeviceID(0ull)), /*memoryRangeCount*/ 1u, /*pMemoryRanges*/ memoryRanges )); } // 33.215 ms // 33.305 ms { app.LoadDataToMappedMemory( DeviceMemoryID(12ull), DataID(14u), 5312512ull, 36864ull ); VkMappedMemoryRange memoryRanges[1u] = {}; memoryRanges[0u].pNext = null; memoryRanges[0u].sType = VK_STRUCTURE_TYPE_MAPPED_MEMORY_RANGE; memoryRanges[0u].memory = app.GetResource(DeviceMemoryID(12ull)); memoryRanges[0u].offset = 0ull; memoryRanges[0u].size = 16777216ull; VK_CALL( app.vkFlushMappedMemoryRanges( /*device*/ app.GetResource(DeviceID(0ull)), /*memoryRangeCount*/ 1u, /*pMemoryRanges*/ memoryRanges )); } // 33.431 ms // 33.530 ms // 33.628 ms { VkSubmitInfo submits[1u] = {}; const VkSemaphore waitSemaphores[] = { app.GetResource(SemaphoreID(8ull)) }; STATIC_ASSERT( CountOf(waitSemaphores) == 1u ); const VkPipelineStageFlags waitDstStageMask[] = { VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT }; STATIC_ASSERT( CountOf(waitDstStageMask) == 1u ); const VkCommandBuffer commandBuffers[] = { app.GetResource(CommandBufferID(34ull)) }; STATIC_ASSERT( CountOf(commandBuffers) == 1u ); const VkSemaphore signalSemaphores[] = { app.GetResource(SemaphoreID(6ull)) }; STATIC_ASSERT( CountOf(signalSemaphores) == 1u ); submits[0u].pNext = null; submits[0u].sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; submits[0u].waitSemaphoreCount = 1u; submits[0u].pWaitSemaphores = waitSemaphores; submits[0u].pWaitDstStageMask = waitDstStageMask; submits[0u].commandBufferCount = 1u; submits[0u].pCommandBuffers = commandBuffers; submits[0u].signalSemaphoreCount = 1u; submits[0u].pSignalSemaphores = signalSemaphores; VK_CALL( app.vkQueueSubmit( /*queue*/ app.GetResource(QueueID(0ull)), /*submitCount*/ 1u, /*pSubmits*/ submits, /*fence*/ app.GetResource(FenceID(38ull)) )); } // 33.675 ms // 33.681 ms VK_CALL( app.vkResetCommandBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(2ull)), /*flags*/ VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT )); // 33.687 ms { const VkFence fences[] = { app.GetResource(FenceID(0ull)) }; STATIC_ASSERT( CountOf(fences) == 1u ); VK_CALL( app.vkResetFences( /*device*/ app.GetResource(DeviceID(0ull)), /*fenceCount*/ 1u, /*pFences*/ fences )); } // 33.692 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(8ull)), /*flags*/ 0 )); // 33.697 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(18ull)), /*flags*/ 0 )); // 33.702 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(26ull)), /*flags*/ 0 )); // 33.707 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(167ull)), /*flags*/ 0 )); // 33.712 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(13ull)), /*flags*/ 0 )); // 33.717 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(23ull)), /*flags*/ 0 )); // 33.721 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(176ull)), /*flags*/ 0 )); // 33.726 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(16ull)), /*flags*/ 0 )); // 33.730 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(11ull)), /*flags*/ 0 )); // 33.735 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(28ull)), /*flags*/ 0 )); // 33.740 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(2ull)), /*flags*/ 0 )); // 33.744 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(31ull)), /*flags*/ 0 )); // 33.749 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(32ull)), /*flags*/ 0 )); // 33.754 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(127ull)), /*flags*/ 0 )); // 33.758 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(129ull)), /*flags*/ 0 )); // 33.763 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(138ull)), /*flags*/ 0 )); // 33.768 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(130ull)), /*flags*/ 0 )); // 33.772 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(132ull)), /*flags*/ 0 )); // 33.777 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(10ull)), /*flags*/ 0 )); // 33.782 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(134ull)), /*flags*/ 0 )); // 33.786 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(136ull)), /*flags*/ 0 )); // 33.791 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(98ull)), /*flags*/ 0 )); // 33.795 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(137ull)), /*flags*/ 0 )); // 33.800 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(96ull)), /*flags*/ 0 )); // 33.805 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(308ull)), /*flags*/ 0 )); // 33.810 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(139ull)), /*flags*/ 0 )); // 33.814 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(77ull)), /*flags*/ 0 )); // 33.819 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(319ull)), /*flags*/ 0 )); // 33.824 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(169ull)), /*flags*/ 0 )); // 33.829 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(172ull)), /*flags*/ 0 )); // 33.833 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(173ull)), /*flags*/ 0 )); // 33.838 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(174ull)), /*flags*/ 0 )); // 33.843 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(175ull)), /*flags*/ 0 )); // 33.847 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(178ull)), /*flags*/ 0 )); // 33.852 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(179ull)), /*flags*/ 0 )); // 33.857 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(104ull)), /*flags*/ 0 )); // 33.861 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(328ull)), /*flags*/ 0 )); // 33.866 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(181ull)), /*flags*/ 0 )); // 33.871 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(275ull)), /*flags*/ 0 )); // 33.876 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(182ull)), /*flags*/ 0 )); // 33.880 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(126ull)), /*flags*/ 0 )); // 33.885 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(184ull)), /*flags*/ 0 )); // 33.890 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(19ull)), /*flags*/ 0 )); // 33.894 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(186ull)), /*flags*/ 0 )); // 33.899 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(187ull)), /*flags*/ 0 )); // 33.903 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(189ull)), /*flags*/ 0 )); // 33.908 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(191ull)), /*flags*/ 0 )); // 33.913 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(46ull)), /*flags*/ 0 )); // 33.918 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(193ull)), /*flags*/ 0 )); // 33.922 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(194ull)), /*flags*/ 0 )); // 33.927 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(359ull)), /*flags*/ 0 )); // 33.932 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(152ull)), /*flags*/ 0 )); // 33.937 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(195ull)), /*flags*/ 0 )); // 33.941 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(196ull)), /*flags*/ 0 )); // 33.946 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(197ull)), /*flags*/ 0 )); // 33.951 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(318ull)), /*flags*/ 0 )); // 33.956 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(185ull)), /*flags*/ 0 )); // 33.960 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(198ull)), /*flags*/ 0 )); // 33.965 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(200ull)), /*flags*/ 0 )); // 33.969 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(203ull)), /*flags*/ 0 )); // 33.974 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(201ull)), /*flags*/ 0 )); // 33.979 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(285ull)), /*flags*/ 0 )); // 33.984 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(202ull)), /*flags*/ 0 )); // 33.988 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(204ull)), /*flags*/ 0 )); // 33.993 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(205ull)), /*flags*/ 0 )); // 33.997 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(207ull)), /*flags*/ 0 )); // 34.002 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(208ull)), /*flags*/ 0 )); // 34.007 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(210ull)), /*flags*/ 0 )); // 34.012 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(301ull)), /*flags*/ 0 )); // 34.016 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(164ull)), /*flags*/ 0 )); // 34.021 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(211ull)), /*flags*/ 0 )); // 34.026 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(213ull)), /*flags*/ 0 )); // 34.030 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(1ull)), /*flags*/ 0 )); // 34.035 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(214ull)), /*flags*/ 0 )); // 34.040 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(54ull)), /*flags*/ 0 )); // 34.044 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(304ull)), /*flags*/ 0 )); // 34.049 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(17ull)), /*flags*/ 0 )); // 34.054 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(215ull)), /*flags*/ 0 )); // 34.059 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(216ull)), /*flags*/ 0 )); // 34.063 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(140ull)), /*flags*/ 0 )); // 34.069 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(217ull)), /*flags*/ 0 )); // 34.073 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(218ull)), /*flags*/ 0 )); // 34.078 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(29ull)), /*flags*/ 0 )); // 34.082 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(219ull)), /*flags*/ 0 )); // 34.087 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(220ull)), /*flags*/ 0 )); // 34.091 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(221ull)), /*flags*/ 0 )); // 34.096 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(302ull)), /*flags*/ 0 )); // 34.102 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(107ull)), /*flags*/ 0 )); // 34.107 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(57ull)), /*flags*/ 0 )); // 34.112 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(222ull)), /*flags*/ 0 )); // 34.118 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(15ull)), /*flags*/ 0 )); // 34.124 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(236ull)), /*flags*/ 0 )); // 34.129 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(240ull)), /*flags*/ 0 )); // 34.134 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(237ull)), /*flags*/ 0 )); // 34.139 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(238ull)), /*flags*/ 0 )); // 34.144 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(239ull)), /*flags*/ 0 )); // 34.149 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(241ull)), /*flags*/ 0 )); // 34.153 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(242ull)), /*flags*/ 0 )); // 34.158 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(244ull)), /*flags*/ 0 )); // 34.163 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(250ull)), /*flags*/ 0 )); // 34.168 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(245ull)), /*flags*/ 0 )); // 34.173 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(246ull)), /*flags*/ 0 )); // 34.179 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(248ull)), /*flags*/ 0 )); // 34.193 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(154ull)), /*flags*/ 0 )); // 34.228 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(305ull)), /*flags*/ 0 )); // 34.248 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(336ull)), /*flags*/ 0 )); // 34.275 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(307ull)), /*flags*/ 0 )); // 34.296 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(311ull)), /*flags*/ 0 )); // 34.315 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(227ull)), /*flags*/ 0 )); // 34.335 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(321ull)), /*flags*/ 0 )); // 34.352 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(82ull)), /*flags*/ 0 )); // 34.377 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(64ull)), /*flags*/ 0 )); // 34.401 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(329ull)), /*flags*/ 0 )); // 34.421 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(335ull)), /*flags*/ 0 )); // 34.441 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(306ull)), /*flags*/ 0 )); // 34.462 ms // 34.488 ms VK_CALL( app.vkResetCommandBuffer( /*commandBuffer*/ app.GetResource(CommandBufferID(6ull)), /*flags*/ VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT )); // 34.506 ms { const VkFence fences[] = { app.GetResource(FenceID(5ull)) }; STATIC_ASSERT( CountOf(fences) == 1u ); VK_CALL( app.vkResetFences( /*device*/ app.GetResource(DeviceID(0ull)), /*fenceCount*/ 1u, /*pFences*/ fences )); } // 34.542 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(39ull)), /*flags*/ 0 )); // 34.592 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(300ull)), /*flags*/ 0 )); // 34.634 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(141ull)), /*flags*/ 0 )); // 34.693 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(143ull)), /*flags*/ 0 )); // 34.748 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(147ull)), /*flags*/ 0 )); // 34.778 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(144ull)), /*flags*/ 0 )); // 34.799 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(145ull)), /*flags*/ 0 )); // 34.812 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(192ull)), /*flags*/ 0 )); // 34.823 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(148ull)), /*flags*/ 0 )); // 34.835 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(150ull)), /*flags*/ 0 )); // 34.846 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(34ull)), /*flags*/ 0 )); // 34.858 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(151ull)), /*flags*/ 0 )); // 34.866 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(69ull)), /*flags*/ 0 )); // 34.879 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(153ull)), /*flags*/ 0 )); // 34.895 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(155ull)), /*flags*/ 0 )); // 34.915 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(156ull)), /*flags*/ 0 )); // 34.922 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(157ull)), /*flags*/ 0 )); // 34.934 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(158ull)), /*flags*/ 0 )); // 34.947 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(282ull)), /*flags*/ 0 )); // 34.957 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(284ull)), /*flags*/ 0 )); // 34.968 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(161ull)), /*flags*/ 0 )); // 34.981 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(162ull)), /*flags*/ 0 )); // 34.987 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(351ull)), /*flags*/ 0 )); // 34.993 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(223ull)), /*flags*/ 0 )); // 34.998 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(146ull)), /*flags*/ 0 )); // 35.003 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(224ull)), /*flags*/ 0 )); // 35.009 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(225ull)), /*flags*/ 0 )); // 35.015 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(235ull)), /*flags*/ 0 )); // 35.020 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(226ull)), /*flags*/ 0 )); // 35.025 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(228ull)), /*flags*/ 0 )); // 35.031 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(229ull)), /*flags*/ 0 )); // 35.036 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(231ull)), /*flags*/ 0 )); // 35.042 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(9ull)), /*flags*/ 0 )); // 35.047 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(48ull)), /*flags*/ 0 )); // 35.052 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(337ull)), /*flags*/ 0 )); // 35.057 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(233ull)), /*flags*/ 0 )); // 35.063 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(234ull)), /*flags*/ 0 )); // 35.068 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(93ull)), /*flags*/ 0 )); // 35.072 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(149ull)), /*flags*/ 0 )); // 35.077 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(251ull)), /*flags*/ 0 )); // 35.087 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(252ull)), /*flags*/ 0 )); // 35.100 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(253ull)), /*flags*/ 0 )); // 35.107 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(254ull)), /*flags*/ 0 )); // 35.113 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(230ull)), /*flags*/ 0 )); // 35.118 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(135ull)), /*flags*/ 0 )); // 35.123 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(255ull)), /*flags*/ 0 )); // 35.128 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(166ull)), /*flags*/ 0 )); // 35.133 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(43ull)), /*flags*/ 0 )); // 35.139 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(256ull)), /*flags*/ 0 )); // 35.144 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(257ull)), /*flags*/ 0 )); // 35.149 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(95ull)), /*flags*/ 0 )); // 35.154 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(317ull)), /*flags*/ 0 )); // 35.158 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(258ull)), /*flags*/ 0 )); // 35.163 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(260ull)), /*flags*/ 0 )); // 35.168 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(315ull)), /*flags*/ 0 )); // 35.173 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(348ull)), /*flags*/ 0 )); // 35.178 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(261ull)), /*flags*/ 0 )); // 35.183 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(128ull)), /*flags*/ 0 )); // 35.188 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(263ull)), /*flags*/ 0 )); // 35.193 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(264ull)), /*flags*/ 0 )); // 35.202 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(316ull)), /*flags*/ 0 )); // 35.222 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(265ull)), /*flags*/ 0 )); // 35.229 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(188ull)), /*flags*/ 0 )); // 35.235 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(331ull)), /*flags*/ 0 )); // 35.240 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(266ull)), /*flags*/ 0 )); // 35.245 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(267ull)), /*flags*/ 0 )); // 35.250 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(268ull)), /*flags*/ 0 )); // 35.255 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(270ull)), /*flags*/ 0 )); // 35.260 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(50ull)), /*flags*/ 0 )); // 35.264 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(349ull)), /*flags*/ 0 )); // 35.270 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(271ull)), /*flags*/ 0 )); // 35.275 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(272ull)), /*flags*/ 0 )); // 35.280 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(71ull)), /*flags*/ 0 )); // 35.285 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(273ull)), /*flags*/ 0 )); // 35.290 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(109ull)), /*flags*/ 0 )); // 35.295 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(274ull)), /*flags*/ 0 )); // 35.300 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(276ull)), /*flags*/ 0 )); // 35.305 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(277ull)), /*flags*/ 0 )); // 35.310 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(278ull)), /*flags*/ 0 )); // 35.314 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(114ull)), /*flags*/ 0 )); // 35.319 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(85ull)), /*flags*/ 0 )); // 35.324 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(323ull)), /*flags*/ 0 )); // 35.329 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(279ull)), /*flags*/ 0 )); // 35.335 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(280ull)), /*flags*/ 0 )); // 35.340 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(38ull)), /*flags*/ 0 )); // 35.345 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(281ull)), /*flags*/ 0 )); // 35.350 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(309ull)), /*flags*/ 0 )); // 35.354 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(286ull)), /*flags*/ 0 )); // 35.360 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(110ull)), /*flags*/ 0 )); // 35.369 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(287ull)), /*flags*/ 0 )); // 35.382 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(80ull)), /*flags*/ 0 )); // 35.389 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(289ull)), /*flags*/ 0 )); // 35.394 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(4ull)), /*flags*/ 0 )); // 35.399 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(290ull)), /*flags*/ 0 )); // 35.404 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(160ull)), /*flags*/ 0 )); // 35.409 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(65ull)), /*flags*/ 0 )); // 35.414 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(303ull)), /*flags*/ 0 )); // 35.419 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(183ull)), /*flags*/ 0 )); // 35.424 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(232ull)), /*flags*/ 0 )); // 35.429 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(361ull)), /*flags*/ 0 )); // 35.435 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(310ull)), /*flags*/ 0 )); // 35.440 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(170ull)), /*flags*/ 0 )); // 35.445 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(330ull)), /*flags*/ 0 )); // 35.450 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(332ull)), /*flags*/ 0 )); // 35.456 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(333ull)), /*flags*/ 0 )); // 35.463 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(3ull)), /*flags*/ 0 )); // 35.468 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(350ull)), /*flags*/ 0 )); // 35.473 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(314ull)), /*flags*/ 0 )); // 35.478 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(163ull)), /*flags*/ 0 )); // 35.483 ms VK_CALL( app.vkResetDescriptorPool( /*device*/ app.GetResource(DeviceID(0ull)), /*descriptorPool*/ app.GetResource(DescriptorPoolID(360ull)), /*flags*/ 0 )); // 35.493 ms CHECK( app.Present( QueueID(0ull), ImageID(41ull), SemaphoreID(6ull) )); } //============================================================================== void Frame1100 (const VApp &app) { // 13.455 ms .. 13.460 ms Frame1100_Thread2108( app ); // 0.000 ns .. 35.493 ms Frame1100_Thread11408( app ); }