vkSetMTLTextureMVK() function retains texture object.
This commit is contained in:
parent
e703705a9a
commit
18a31fb3dd
@ -31,9 +31,12 @@ Released 2019/01/28
|
|||||||
array of samplers requested but not supported.
|
array of samplers requested but not supported.
|
||||||
- Treat all attributes & resources as used by shader when using pre-converted MSL.
|
- Treat all attributes & resources as used by shader when using pre-converted MSL.
|
||||||
- Allow default GPU Capture scope to be assigned to any queue in any queue family.
|
- Allow default GPU Capture scope to be assigned to any queue in any queue family.
|
||||||
|
- VkPhysicalDevice: Correct some features and limits.
|
||||||
- Stop advertising atomic image support.
|
- Stop advertising atomic image support.
|
||||||
- Enhancements to `MVKVector`, and set appropriate inline sizing usages.
|
- vkSetMTLTextureMVK() function retains texture object.
|
||||||
|
- Log to stderr instead of stdout.
|
||||||
- `fetchDependencies`: build `spirv-tools` when attached via symlink.
|
- `fetchDependencies`: build `spirv-tools` when attached via symlink.
|
||||||
|
- Enhancements to `MVKVector`, and set appropriate inline sizing usages.
|
||||||
- Update `VK_MVK_MOLTENVK_SPEC_VERSION` to 17.
|
- Update `VK_MVK_MOLTENVK_SPEC_VERSION` to 17.
|
||||||
- Update to latest SPIRV-Cross version:
|
- Update to latest SPIRV-Cross version:
|
||||||
- MSL: Deal with resource name aliasing.
|
- MSL: Deal with resource name aliasing.
|
||||||
|
@ -277,7 +277,7 @@ VkResult MVKImage::setMTLTexture(id<MTLTexture> mtlTexture) {
|
|||||||
resetMTLTexture();
|
resetMTLTexture();
|
||||||
resetIOSurface();
|
resetIOSurface();
|
||||||
|
|
||||||
_mtlTexture = mtlTexture;
|
_mtlTexture = [mtlTexture retain]; // retained
|
||||||
|
|
||||||
_mtlPixelFormat = _mtlTexture.pixelFormat;
|
_mtlPixelFormat = _mtlTexture.pixelFormat;
|
||||||
_mtlTextureType = _mtlTexture.textureType;
|
_mtlTextureType = _mtlTexture.textureType;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user