summaryrefslogtreecommitdiff
path: root/tools/gfx/vulkan/render-vk.h
diff options
context:
space:
mode:
authorlucy96chen <47800040+lucy96chen@users.noreply.github.com>2022-05-04 11:44:24 -0700
committerGitHub <noreply@github.com>2022-05-04 11:44:24 -0700
commitca86ce28829987fce2df4a81da976e6b18e17ad1 (patch)
tree7c5032b8475157392aca4ff624357b3661534174 /tools/gfx/vulkan/render-vk.h
parentf4c2b0de41f703aa2000c344484e7cd37db56a32 (diff)
Changed all uses of attachment (in the context of render/depth stencil targets) to target (#2214)
Co-authored-by: Theresa Foley <10618364+tangent-vector@users.noreply.github.com>
Diffstat (limited to 'tools/gfx/vulkan/render-vk.h')
-rw-r--r--tools/gfx/vulkan/render-vk.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gfx/vulkan/render-vk.h b/tools/gfx/vulkan/render-vk.h
index 091a490f2..646c3eb98 100644
--- a/tools/gfx/vulkan/render-vk.h
+++ b/tools/gfx/vulkan/render-vk.h
@@ -19,7 +19,7 @@ using namespace Slang;
enum
{
kMaxRenderTargets = 8,
- kMaxAttachments = kMaxRenderTargets + 1,
+ kMaxTargets = kMaxRenderTargets + 1,
kMaxPushConstantSize = 256,
kMaxDescriptorSets = 8,
};
@@ -411,10 +411,10 @@ class FramebufferLayoutImpl : public FramebufferLayoutBase
public:
VkRenderPass m_renderPass;
DeviceImpl* m_renderer;
- Array<VkAttachmentDescription, kMaxAttachments> m_attachmentDescs;
+ Array<VkAttachmentDescription, kMaxTargets> m_targetDescs;
Array<VkAttachmentReference, kMaxRenderTargets> m_colorReferences;
VkAttachmentReference m_depthReference;
- bool m_hasDepthStencilAttachment;
+ bool m_hasDepthStencilTarget;
uint32_t m_renderTargetCount;
VkSampleCountFlagBits m_sampleCount = VK_SAMPLE_COUNT_1_BIT;
@@ -448,7 +448,7 @@ public:
uint32_t m_width;
uint32_t m_height;
BreakableReference<DeviceImpl> m_renderer;
- VkClearValue m_clearValues[kMaxAttachments];
+ VkClearValue m_clearValues[kMaxTargets];
RefPtr<FramebufferLayoutImpl> m_layout;
public: