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

Method IsWriteable

layers/sync/sync_render_pass.cpp:1116–1129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1114}
1115
1116bool DynamicRenderingInfo::Attachment::IsWriteable(const LastBound& last_bound_state) const {
1117 bool writeable = IsValid();
1118 if (writeable) {
1119 // Depth and Stencil have additional criteria
1120 if (type == AttachmentType::kDepth) {
1121 writeable =
1122 last_bound_state.IsDepthWriteEnable() && IsDepthAttachmentWriteable(last_bound_state, view->create_info.format);
1123 } else if (type == AttachmentType::kStencil) {
1124 writeable =
1125 last_bound_state.IsStencilTestEnable() && IsStencilAttachmentWriteable(last_bound_state, view->create_info.format);
1126 }
1127 }
1128 return writeable;
1129}
1130
1131} // namespace syncval

Calls 5

IsValidFunction · 0.85
IsDepthWriteEnableMethod · 0.80
IsStencilTestEnableMethod · 0.80

Tested by

no test coverage detected