diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-12-05 04:28:04 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-12-05 04:28:04 +0000 |
| commit | bc034568a62b12a813c0f7445cd85d00fdeda390 (patch) | |
| tree | 1de0b9c9a6a8cf0c500a8ca3409c4b9d2f44f410 /Graphics/GraphicsEngineVulkan | |
| parent | Minor code improvements in Vk backend (diff) | |
| download | DiligentCore-bc034568a62b12a813c0f7445cd85d00fdeda390.tar.gz DiligentCore-bc034568a62b12a813c0f7445cd85d00fdeda390.zip | |
Added ITextureD3D12::GetD3D12ResourceState(), IBufferD3D12::GetD3D12ResourceState(),
and IBufferVk::GetAccessFlags() methods
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/include/BufferVkImpl.h | 2 | ||||
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/interface/BufferVk.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/Graphics/GraphicsEngineVulkan/include/BufferVkImpl.h b/Graphics/GraphicsEngineVulkan/include/BufferVkImpl.h index 0825fa19..69f90bf7 100644 --- a/Graphics/GraphicsEngineVulkan/include/BufferVkImpl.h +++ b/Graphics/GraphicsEngineVulkan/include/BufferVkImpl.h @@ -95,7 +95,7 @@ public: } virtual void SetAccessFlags(VkAccessFlags AccessFlags)override final; - VkAccessFlags GetAccessFlags()const; + virtual VkAccessFlags GetAccessFlags()const override final; bool CheckAccessFlags(VkAccessFlags AccessFlags)const { return (GetAccessFlags() & AccessFlags) == AccessFlags; diff --git a/Graphics/GraphicsEngineVulkan/interface/BufferVk.h b/Graphics/GraphicsEngineVulkan/interface/BufferVk.h index 6b3b672d..0c536edd 100644 --- a/Graphics/GraphicsEngineVulkan/interface/BufferVk.h +++ b/Graphics/GraphicsEngineVulkan/interface/BufferVk.h @@ -48,6 +48,10 @@ public: /// \param [in] AccessFlags - Vulkan access flags to be set for this buffer virtual void SetAccessFlags(VkAccessFlags AccessFlags) = 0; + + /// If the buffer state is known to the engine (i.e. not Diligent::RESOURCE_STATE_UNKNOWN), + /// returns Vulkan access flags corresponding to the state. If the state is unknown, returns 0. + virtual VkAccessFlags GetAccessFlags() const = 0; }; } |
