3D Graphics Rendering Cookbook by Sergey Kosarevsky Viktor Latypov

3D Graphics Rendering Cookbook by Sergey Kosarevsky Viktor Latypov

Author:Sergey Kosarevsky, Viktor Latypov
Language: eng
Format: epub
Publisher: Packt Publishing Limited
Published: 2021-07-30T00:00:00+00:00


For each of the external textures, we create an image information structure. For simplicity, we assume all of our textures are in the shader-optimal layout: for (size_t i = 0; i < extTextures_.size(); i++) textureDescriptors.push_back({ .sampler = extTextures_[i].sampler, .imageView = extTextures_[i].image.imageView, .imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL });

Now, we should proceed to updating each of the created descriptor sets: for (size_t i = 0; i < vkDev.swapchainImages.size(); i++) {

VkDescriptorSet ds = descriptorSets_[i];



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.