MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / IsDepth

Method IsDepth

layers/state_tracker/cmd_buffer_state.cpp:55–58  ·  view source on GitHub ↗

Dynamic Rendering we know it is depth only, but for VkRenderPass, we need to check incase it is a stencil only attachment

Source from the content-addressed store, hash-verified

53
54// Dynamic Rendering we know it is depth only, but for VkRenderPass, we need to check incase it is a stencil only attachment
55bool AttachmentInfo::IsDepth() const {
56 return type == Type::Depth ||
57 (type == Type::DepthStencil && image_view && vkuFormatHasDepth(image_view->image_state->GetFormat()));
58}
59
60bool AttachmentInfo::IsStencil() const {
61 return type == Type::Stencil ||

Calls 1

GetFormatMethod · 0.80

Tested by

no test coverage detected