yshui / index_camera_passthrough

Experimental Valve Index camera passthrough for Linux
MIT License
46 stars 1 forks source link

Build in release mode can't find vulkan layer, debug works #10

Closed SpookySkeletons closed 5 months ago

SpookySkeletons commented 5 months ago
bones@rog ~/Programs/git/xr-overlays/index_camera_passthrough $ RUST_LOG=debug cargo run --release
    Finished release [optimized] target(s) in 0.12s
     Running `target/release/index_camera_passthrough`
[2024-01-30T07:09:18Z INFO  index_camera_passthrough] width          : 1920
    height         : 960
    fourcc         : YUYV
    field          : progressive
    stride         : 3840
    size           : 3686400
    colorspace     : sRGB
    quantization   : default
    transfer       : Rec. 709 transfer function

[2024-01-30T07:09:18Z DEBUG index_camera_passthrough] loading splash
[2024-01-30T07:09:18Z DEBUG index_camera_passthrough] splash loaded
[2024-01-30T07:09:18Z INFO  index_camera_passthrough] OpenXR
LOG in xrCreateInstance: Instance created
        createInfo->applicationInfo.applicationName: Camera
        createInfo->applicationInfo.applicationVersion: 0
        createInfo->applicationInfo.engineName: engine
        createInfo->applicationInfo.engineVersion: 0
        appinfo.detected.engine.name: (null)
        appinfo.detected.engine.version: 0.0.0
        quirks.disable_vulkan_format_depth_stencil: false
        quirks.no_validation_error_in_create_ref_space: true
LOG in xrCreateInstance: Selected devices
        Head: 'Index HMD'
        Eyes: '<none>'
        Left: 'Valve Index Controller'
        Right: 'Valve Index Controller'
        Gamepad: '<none>'
        Hand-Tracking Left: 'Valve Index Controller'
        Hand-Tracking Right: 'Valve Index Controller'
LOG in xrCreateVulkanInstanceKHR: Creation of VkInstance:
        result: VK_ERROR_LAYER_NOT_PRESENT
        vulkanInstance: 0x0
        extensions:
                VK_KHR_external_fence_capabilities
                VK_KHR_external_memory_capabilities
                VK_KHR_external_semaphore_capabilities
                VK_KHR_get_physical_device_properties2
                VK_EXT_debug_utils
                VK_KHR_device_group_creation
                VK_KHR_display
                VK_KHR_get_display_properties2
                VK_KHR_get_surface_capabilities2
                VK_KHR_portability_enumeration
                VK_KHR_surface
                VK_KHR_surface_protected_capabilities
                VK_KHR_wayland_surface
                VK_KHR_xcb_surface
                VK_KHR_xlib_surface
                VK_EXT_acquire_drm_display
                VK_EXT_acquire_xlib_display
                VK_EXT_debug_report
                VK_EXT_direct_mode_display
                VK_EXT_display_surface_counter
                VK_EXT_surface_maintenance1
                VK_EXT_swapchain_colorspace
                VK_LUNARG_direct_driver_loading
Error: vulkan error: Layer specified does not exist

Caused by:
    Layer specified does not exist
yshui commented 5 months ago

fixed in 0413f2c733bd235e59d062abf65139560fbb2619, i think.