diff options
author | dan sinclair <dj2@everburning.com> | 2019-02-21 17:27:25 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-21 17:27:25 -0500 |
commit | 12389f2889a16b6f9f9a2fe7d9176af9710d9af2 (patch) | |
tree | 5d99df0fd1067cd65c5181f478987fc0fff51748 /src/vulkan/buffer_descriptor.h | |
parent | 4c4ad39c0dca8621c6f8c00a9402b28cc760306c (diff) | |
download | amber-12389f2889a16b6f9f9a2fe7d9176af9710d9af2.tar.gz |
[vulkan] Code cleanup (#310)
This CL cleans up various things in the src/vulkan directory. Code is
moved closer to usage if a subclass is the only caller. CommandBuffer
and CommandPool are passed instead of VkCommandBuffer and VkCommandPool.
Diffstat (limited to 'src/vulkan/buffer_descriptor.h')
-rw-r--r-- | src/vulkan/buffer_descriptor.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vulkan/buffer_descriptor.h b/src/vulkan/buffer_descriptor.h index 65db9be..cc01f53 100644 --- a/src/vulkan/buffer_descriptor.h +++ b/src/vulkan/buffer_descriptor.h @@ -29,6 +29,7 @@ namespace amber { namespace vulkan { +class CommandBuffer; class Device; // Among Vulkan descriptor types, this class handles Storage Buffer @@ -44,8 +45,8 @@ class BufferDescriptor : public Descriptor { // Descriptor Result CreateResourceIfNeeded( const VkPhysicalDeviceMemoryProperties& properties) override; - Result RecordCopyDataToResourceIfNeeded(VkCommandBuffer command) override; - Result RecordCopyDataToHost(VkCommandBuffer command) override; + Result RecordCopyDataToResourceIfNeeded(CommandBuffer* command) override; + Result RecordCopyDataToHost(CommandBuffer* command) override; Result MoveResourceToBufferOutput() override; Result UpdateDescriptorSetIfNeeded(VkDescriptorSet descriptor_set) override; ResourceInfo GetResourceInfo() override; |