From c6e0cf0172eaa699defefbfdae8c68d585cde346 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Fri, 6 May 2016 08:41:52 +0800 Subject: doc: allow layers to ignore pAllocator --- loader/LoaderAndLayerInterface.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'loader/LoaderAndLayerInterface.md') diff --git a/loader/LoaderAndLayerInterface.md b/loader/LoaderAndLayerInterface.md index 84143862..78213477 100644 --- a/loader/LoaderAndLayerInterface.md +++ b/loader/LoaderAndLayerInterface.md @@ -1115,6 +1115,11 @@ command to wrap the objects created by its lower layers, it must make sure its lower layers never see the wrapping objects, directly from itself or indirectly from its upper layers. +When a layer requires host memory, it may ignore the provided allocators. It +should use memory allocators if the layer is intended to run in a production +environment, such as an implicit layer that is always enabled. That will +allow applications to include the layer's memory usage. + `vkEnumerateDeviceExtensionProperties` must handle the case where `pLayerName` is `NULL`, usually by chaining to other layers. -- cgit v1.2.3