From 54ff7bf769e21d8a75a2abe691266eb54b1f8ebd Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 30 Sep 2019 01:54:49 +0200 Subject: [PATCH] [dxvk] Add methods to retrieve shaders from pipeline --- src/dxvk/dxvk_compute.h | 8 ++++++++ src/dxvk/dxvk_graphics.h | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/dxvk/dxvk_compute.h b/src/dxvk/dxvk_compute.h index ca7c6616e..dcbd24c21 100644 --- a/src/dxvk/dxvk_compute.h +++ b/src/dxvk/dxvk_compute.h @@ -104,6 +104,14 @@ namespace dxvk { ~DxvkComputePipeline(); + /** + * \brief Shaders used by the pipeline + * \returns Shaders used by the pipeline + */ + const DxvkComputePipelineShaders& shaders() const { + return m_shaders; + } + /** * \brief Pipeline layout * diff --git a/src/dxvk/dxvk_graphics.h b/src/dxvk/dxvk_graphics.h index 168e9714a..6310a0695 100644 --- a/src/dxvk/dxvk_graphics.h +++ b/src/dxvk/dxvk_graphics.h @@ -209,6 +209,14 @@ namespace dxvk { ~DxvkGraphicsPipeline(); + /** + * \brief Shaders used by the pipeline + * \returns Shaders used by the pipeline + */ + const DxvkGraphicsPipelineShaders& shaders() const { + return m_shaders; + } + /** * \brief Returns graphics pipeline flags * \returns Graphics pipeline property flags