mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-04 02:02:41 +08:00
VRS && Compute Shader Support (#14728)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user