Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问下如果多级处理链,纹理如果需要改变大小怎么做 #4

Open
swlfigo opened this issue Dec 19, 2016 · 0 comments
Open

Comments

@swlfigo
Copy link

swlfigo commented Dec 19, 2016

最近想写个类似 gpuimage 的处理链,就是上级A生成一张纹理给下级B再处理,用的是 metal 文件用的是kernel开头的函数那种,如果我想上级A输出的纹理尺寸是(1000,1000)给下级,下级B再处理完生成(100 , 900)这种尺寸的, 我在MTLTextureDescriptor设置纹理尺寸了,但是生成出来的B纹理是A纹理的(100,900)位置裁剪,并不是将1000 1000 尺寸纹理 压缩画到 100 900 上面,请问下应该怎么设置呢,新手研究

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant