From 55a6b80919983ec8721f9847f8b954a05ca30cb9 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 9 Feb 2022 04:35:59 +0100 Subject: [PATCH] [d3d11] Add method to query D3D11 resource dimension from texture --- src/d3d11/d3d11_texture.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/d3d11/d3d11_texture.h b/src/d3d11/d3d11_texture.h index a5afcf29..f4df6e12 100644 --- a/src/d3d11/d3d11_texture.h +++ b/src/d3d11/d3d11_texture.h @@ -100,6 +100,14 @@ namespace dxvk { return &m_desc; } + /** + * \brief Retrieves D3D11 texture type + * \returns D3D11 resource dimension + */ + D3D11_RESOURCE_DIMENSION GetDimension() const { + return m_dimension; + } + /** * \brief Retrieves Vulkan image type *