Skip to content

SymbolLoadingException #2233

@00f8t

Description

@00f8t

Summary

Silk.NET.Core.Loader.SymbolLoadingException: 'Native symbol not found (Symbol: vkGetPhysicalDeviceVideoCapabilitiesKHR)'

when trying to get Physical Device Video Capabilities

private void InitDecoder()
{
    KhrVideoQueue? khrVideoQueue;
    if (!vk!.TryGetDeviceExtension(instance, device, out khrVideoQueue))
    {
        throw new NotSupportedException("VK_KHR_video_queue extension not found.");
    }



    VideoDecodeH264CapabilitiesKHR videoDecodeH264CapabilitiesKHR = new()
    {
        SType = StructureType.VideoDecodeH264CapabilitiesKhr,
    };

    VideoDecodeCapabilitiesKHR videoDecodeCapabilitiesKHR = new()
    {
        SType = StructureType.VideoDecodeCapabilitiesKhr,
        PNext = &videoDecodeH264CapabilitiesKHR,
    };

    VideoCapabilitiesKHR videoCapabilitiesKHR = new()
    {
        SType = StructureType.VideoCapabilitiesKhr,
        PNext = &videoDecodeCapabilitiesKHR,
    };

    VideoDecodeH264ProfileInfoKHR videoDecodeH264ProfileInfoKHR = new()
    {
        SType = StructureType.VideoDecodeH264ProfileInfoKhr,
        StdProfileIdc = StdVideoH264ProfileIdc.Baseline,
        PictureLayout = VideoDecodeH264PictureLayoutFlagsKHR.InterlacedInterleavedLinesBitKhr,
    };

    VideoProfileInfoKHR videoProfileInfoKHR = new()
    {
        SType = StructureType.VideoProfileInfoKhr,
        PNext = &videoDecodeH264ProfileInfoKHR,
        VideoCodecOperation = VideoCodecOperationFlagsKHR.DecodeH264BitKhr,
        ChromaSubsampling = VideoChromaSubsamplingFlagsKHR.Subsampling420BitKhr,
        LumaBitDepth = VideoComponentBitDepthFlagsKHR.Depth8BitKhr,
        ChromaBitDepth = VideoComponentBitDepthFlagsKHR.Depth8BitKhr,
    };

    VideoProfileListInfoKHR videoProfileListInfoKHR = new()
    {
        SType = StructureType.VideoProfileListInfoKhr,
        ProfileCount = 1,
        PProfiles = &videoProfileInfoKHR,
    };

    if (khrVideoQueue!.GetPhysicalDeviceVideoCapabilities(physicalDevice, &videoProfileInfoKHR, out videoCapabilitiesKHR) != Result.Success)
    {
        throw new Exception("failed to get video capabilities..");
    }
}

enabled extensions

Steps to reproduce

  • Platform: Desktop
  • Framework Version: .NET 8.0
  • API: Vulkan
  • API Version: Vulkan 1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions