Skip to content

Cannot reserve 'buffer' resource location at index 8 #2576

@huanggui

Description

@huanggui

Running my application will report the following error. If the MVK_CONFIG_USE_METAL_ARGUMENT_BUFFERS configuration is disabled (MVK_CONFIG_USE_METAL_ARGUMENT_BUFFERS=0), no error will occur.

Error Info:

[mvk-error] VK_ERROR_INITIALIZATION_FAILED: Shader library compile failed (Error_1 code 3):
program_source:90:246: error: cannot reserve 'buffer' resource location at index 8
vertex main0_out main0(main0_in in [[stage_in]], constant spvDescriptorSetBuffer0& spvDescriptorSet0 [[buffer(0)]], constant spvDescriptorSetBuffer1& spvDescriptorSet1 [[buffer(1)]], constant uint* spvDynamicOffsets [[buffer(8)]], constant _35& _96 [[buffer(8)]])

Device Info:

[mvk-info] MoltenVK version 1.3.1, supporting Vulkan version 1.3.314.
[mvk-info] GPU device:
model: Apple M4 Pro
type: Integrated
vendorID: 0x106b
deviceID: 0xf050209
pipelineCacheUUID: C8CD935B-0F05-0209-0000-000100000000
GPU memory available: 36864 MB
GPU memory used: 0 MB
Metal Shading Language 3.2
supports the following GPU Features:
GPU Family Metal 3
GPU Family Apple 9
GPU Family Mac 2
Read-Write Texture Tier 2
[mvk-info] Created VkInstance for Vulkan version 1.1.0, as requested by app, with the following 6 Vulkan extensions enabled:
VK_KHR_external_fence_capabilities v1
VK_KHR_external_memory_capabilities v1
VK_KHR_external_semaphore_capabilities v1
VK_KHR_get_physical_device_properties2 v2
VK_KHR_surface v25
VK_MVK_macos_surface v3
INFO | Selecting Vulkan device: Apple M4 Pro, Version: 1.1.0
[mvk-info] Vulkan semaphores using Metal implicit guarantees within a single queue.
[mvk-info] Descriptor sets binding resources using Metal3 argument buffers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions