summaryrefslogtreecommitdiffstats
path: root/tools/gfx/vulkan/render-vk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/vulkan/render-vk.cpp')
-rw-r--r--tools/gfx/vulkan/render-vk.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/gfx/vulkan/render-vk.cpp b/tools/gfx/vulkan/render-vk.cpp
index 8cec9d4a0..65eee6d3e 100644
--- a/tools/gfx/vulkan/render-vk.cpp
+++ b/tools/gfx/vulkan/render-vk.cpp
@@ -157,6 +157,8 @@ public:
virtual SLANG_NO_THROW Result SLANG_MCALL getTextureAllocationInfo(
const ITextureResource::Desc& desc, size_t* outSize, size_t* outAlignment) override;
+ virtual SLANG_NO_THROW Result SLANG_MCALL getTextureRowAlignment(size_t* outAlignment) override;
+
virtual SLANG_NO_THROW Result SLANG_MCALL
createFence(const IFence::Desc& desc, IFence** outFence) override;
@@ -4993,6 +4995,7 @@ public:
IBufferResource* dst,
size_t dstOffset,
size_t dstSize,
+ size_t dstRowStride,
ITextureResource* src,
ResourceState srcState,
SubresourceRange srcSubresource,
@@ -8062,6 +8065,12 @@ Result VKDevice::getTextureAllocationInfo(
return SLANG_OK;
}
+Result VKDevice::getTextureRowAlignment(size_t* outAlignment)
+{
+ *outAlignment = 1;
+ return SLANG_OK;
+}
+
Result VKDevice::createTextureResource(const ITextureResource::Desc& descIn, const ITextureResource::SubresourceData* initData, ITextureResource** outResource)
{
TextureResource::Desc desc = fixupTextureDesc(descIn);