VRS && Compute Shader Support (#14728)

This commit is contained in:
Zach Lee
2023-04-10 12:57:35 +08:00
committed by GitHub
parent c580603c98
commit bfe9d90051
51 changed files with 1690 additions and 1103 deletions
@@ -59,7 +59,7 @@ void FramebufferValidator::doInit(const FramebufferInfo &info) {
const auto &desc = info.renderPass->getColorAttachments()[i];
const auto *tex = info.colorTextures[i];
CC_ASSERT(tex && static_cast<const TextureValidator *>(tex)->isInited());
CC_ASSERT(hasAnyFlags(tex->getInfo().usage, TextureUsageBit::COLOR_ATTACHMENT | TextureUsageBit::DEPTH_STENCIL_ATTACHMENT));
CC_ASSERT(hasAnyFlags(tex->getInfo().usage, TextureUsageBit::COLOR_ATTACHMENT | TextureUsageBit::DEPTH_STENCIL_ATTACHMENT | TextureUsageBit::SHADING_RATE));
CC_ASSERT(tex->getFormat() == desc.format);
}
if (info.depthStencilTexture) {