vkSetBufferCollectionImageConstraintsFUCHSIA
Setting the constraints on the buffer collection initiates the format negotiation and allocation of the buffer collection. To set the constraints on a VkImage buffer collection, call:
VkResult vkSetBufferCollectionImageConstraintsFUCHSIA(
VkDevice device,
VkBufferCollectionFUCHSIA collection,
const VkImageConstraintsInfoFUCHSIA* pImageConstraintsInfo);
pub fn set_buffer_collection_image_constraints_fuchsia(
device: vk::Device,
collection: vk::BufferCollectionFUCHSIA,
p_image_constraints_info: *const vk::ImageConstraintsInfoFUCHSIA,
) -> vk::Result;
deviceis the logical devicecollectionis the VkBufferCollectionFUCHSIA handlepImageConstraintsInfois a pointer to a VkImageConstraintsInfoFUCHSIA structure
vkSetBufferCollectionImageConstraintsFUCHSIA may fail if
pImageConstraintsInfo→formatConstraintsCount is larger than the
implementation-defined limit.
If that occurs, vkSetBufferCollectionImageConstraintsFUCHSIA will
return VK_ERROR_INITIALIZATION_FAILED.
vkSetBufferCollectionImageConstraintsFUCHSIA may fail if the
implementation does not support any of the formats described by the
pImageConstraintsInfo structure.
If that occurs, vkSetBufferCollectionImageConstraintsFUCHSIA will
return VK_ERROR_FORMAT_NOT_SUPPORTED.
Valid Usage
VUID-vkSetBufferCollectionImageConstraintsFUCHSIA-collection-06394
vkSetBufferCollectionImageConstraintsFUCHSIA or
vkSetBufferCollectionBufferConstraintsFUCHSIA must not have
already been called on collection
Valid Usage (Implicit)
VUID-vkSetBufferCollectionImageConstraintsFUCHSIA-device-parameter
device must be a valid VkDevice handle
VUID-vkSetBufferCollectionImageConstraintsFUCHSIA-collection-parameter
collection must be a valid VkBufferCollectionFUCHSIA handle
VUID-vkSetBufferCollectionImageConstraintsFUCHSIA-pImageConstraintsInfo-parameter
pImageConstraintsInfo must be a valid pointer to a valid VkImageConstraintsInfoFUCHSIA structure
VUID-vkSetBufferCollectionImageConstraintsFUCHSIA-collection-parent
collection must have been created, allocated, or retrieved from device