TextureCache: Speed up descriptor writes (no more vector usage)

WIP TextureCube uploading skeleton
This commit is contained in:
Dr. Chat
2016-06-19 21:27:30 -05:00
parent 450ca87120
commit f194d261b1
2 changed files with 64 additions and 84 deletions

View File

@@ -153,6 +153,10 @@ class TextureCache {
std::shared_ptr<ui::vulkan::Fence> completion_fence,
Texture* dest, TextureInfo src);
bool UploadTextureCube(VkCommandBuffer command_buffer,
std::shared_ptr<ui::vulkan::Fence> completion_fence,
Texture* dest, TextureInfo src);
bool SetupTextureBindings(
VkCommandBuffer command_buffer,
std::shared_ptr<ui::vulkan::Fence> completion_fence,
@@ -192,11 +196,8 @@ class TextureCache {
// This prevents duplication across the vertex and pixel shader.
uint32_t has_setup_fetch_mask;
uint32_t image_write_count = 0;
struct ImageSetInfo {
Dimension dimension;
uint32_t tf_binding;
VkDescriptorImageInfo info;
} image_infos[32];
VkWriteDescriptorSet image_writes[32];
VkDescriptorImageInfo image_infos[32];
} update_set_info_;
};