-
-
Notifications
You must be signed in to change notification settings - Fork 441
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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..");
}
}
Steps to reproduce
- Platform: Desktop
- Framework Version: .NET 8.0
- API: Vulkan
- API Version: Vulkan 1.3
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done