C Specification

Bits which can be set in VkPipelineCacheCreateInfo::flags, specifying behavior of the pipeline cache, are:

// Provided by VKSC_VERSION_1_0
typedef enum VkPipelineCacheCreateFlagBits {
  // Provided by VKSC_VERSION_1_0
    VK_PIPELINE_CACHE_CREATE_READ_ONLY_BIT = 0x00000002,
  // Provided by VKSC_VERSION_1_0
    VK_PIPELINE_CACHE_CREATE_USE_APPLICATION_STORAGE_BIT = 0x00000004,
} VkPipelineCacheCreateFlagBits;

Description

  • VK_PIPELINE_CACHE_CREATE_READ_ONLY_BIT specifies that the new pipeline cache will be read-only.

  • VK_PIPELINE_CACHE_CREATE_USE_APPLICATION_STORAGE_BIT specifies that the application will maintain the contents of the memory pointed to by pInitialData for the lifetime of the pipeline cache object created, avoiding the need for the implementation to make a copy of the data. The memory pointed to by pInitialData can be modified or released by the application only after any pipeline cache objects created using it have been destroyed.

See Also

Document Notes

For more information, see the Vulkan Specification

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.

Copyright 2014-2023 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0