Post

Replies

Boosts

Views

Activity

DRHT > error > MTLTextureDescriptor
my code: guard let drawable = view.currentDrawable else { return }     let renderPassDescriptor = MTLRenderPassDescriptor()     renderPassDescriptor.colorAttachments[0].texture = drawable.texture //There is a crash     renderPassDescriptor.colorAttachments[0].loadAction = .clear     renderPassDescriptor.colorAttachments[0].clearColor = MTLClearColor(red: 0, green: 0, blue: 0, alpha: 0) error info: MTLTextureDescriptor has height (9964) greater than the maximum allowed size of 8192. > validateTextureDimensions > validateTextureDimensions:1075: failed assertion `MTLTextureDescriptor has height (9964) greater than the maximum allowed size of 8192.' please help: I try to put a canvas on an image,as you can see,the size of this canvas is too large to exceed the GPU processing limit。Is there a better way that don't change size to solve this problem
2
0
1.5k
Dec ’22