大佬,这两个设置后,截图的依然不是透明背景
尝试过使用这个
const colorAttachment = new gfx.ColorAttachment();
colorAttachment.loadOp = gfx.LoadOp.LOAD;
colorAttachment.endLayout = gfx.TextureLayout.SHADER_READONLY_OPTIMAL;
const depthStencilAttachment = new gfx.DepthStencilAttachment();
const passInfo = new gfx.RenderPassInfo([colorAttachment], depthStencilAttachment);
texture.reset({width: 300, height: 500, passInfo: passInfo});
也有问题,endLayout 这个属性也会去掉了




