mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Metal: Fixed DS format.
This commit is contained in:
parent
49b4d32f15
commit
0c1fb8d7ce
1 changed files with 9 additions and 2 deletions
|
@ -1875,8 +1875,15 @@ namespace bgfx { namespace mtl
|
|||
desc.sampleCount = 1; //TODO: set samplecount - If textureType is not MTLTextureType2DMultisample, the value must be 1.
|
||||
desc.resourceOptions = MTLResourceStorageModePrivate;
|
||||
desc.cpuCacheMode = MTLCPUCacheModeDefaultCache;
|
||||
desc.storageMode = bufferOnly ? 1 /*MTLStorageModeManaged*/ : 2 /*MTLStorageModePrivate*/;
|
||||
desc.usage = MTLTextureUsageShaderRead;
|
||||
|
||||
desc.storageMode = bufferOnly
|
||||
? 2 /*MTLStorageModePrivate*/
|
||||
: 1 /*MTLStorageModeManaged*/
|
||||
;
|
||||
desc.usage = bufferOnly
|
||||
? MTLTextureUsageShaderWrite
|
||||
: MTLTextureUsageShaderRead
|
||||
;
|
||||
|
||||
//TODO: set resource flags depending on usage(renderTarget/computeWrite/etc) on iOS9/OSX
|
||||
|
||||
|
|
Loading…
Reference in a new issue