Lines Matching refs:tex_desc
253 MTLTextureDescriptor* tex_desc = [MTLTextureDescriptor new];
254 tex_desc.pixelFormat = mvkMTLPixelFormatFromVkFormat (vk_mem->create_info.format);
255 tex_desc.textureType = mvkMTLTextureTypeFromVkImageType (vk_mem->create_info.imageType, 0, false);
256 tex_desc.width = vk_mem->create_info.extent.width;
257 tex_desc.height = vk_mem->create_info.extent.height;
258 tex_desc.depth = vk_mem->create_info.extent.depth;
259 tex_desc.mipmapLevelCount = vk_mem->create_info.mipLevels;
260 tex_desc.sampleCount = mvkSampleCountFromVkSampleCountFlagBits(vk_mem->create_info.samples);
261 tex_desc.arrayLength = vk_mem->create_info.arrayLayers;
262 …tex_desc.usage = MTLTextureUsageShaderRead | MTLTextureUsagePixelFormatView;//mvkMTLTextureUsageFr…
263 tex_desc.storageMode = MTLStorageModeShared;
264 …tex_desc.cpuCacheMode = MTLCPUCacheModeDefaultCache;//mvkMTLCPUCacheModeFromVkMemoryPropertyFlags(…
266 return tex_desc;
296 MTLTextureDescriptor *tex_desc = gst_new_mtl_tex_descripter_from_memory (memory);
297 texture = [mtl_dev newTextureWithDescriptor:tex_desc iosurface:surface plane:memory->plane];