VK-GL-CTS | Khronos Vulkan , OpenGL , and OpenGL ES Conformance Tests | 3D Animation library
kandi X-RAY | VK-GL-CTS Summary
kandi X-RAY | VK-GL-CTS Summary
This repository contains a GPU testing suite called dEQP (drawElements Quality Program). dEQP contains tests for several graphics APIs, including OpenGL ES, EGL, and Vulkan.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of VK-GL-CTS
VK-GL-CTS Key Features
VK-GL-CTS Examples and Code Snippets
Community Discussions
Trending Discussions on VK-GL-CTS
QUESTION
I've been trying to sample a YCbCr image in Vulkan for 16+ hours now, but I keep getting incorrect results, and I was hoping someone might be able to spot my mistake.
I have a NV12 YCbCr image which I want to render onto two triangles forming a quad. If i understand correctly, the VkFormat that corresponds to NV12 is VK_FORMAT_G8_B8R8_2PLANE_420_UNORM. Below is the code that I would expect to work, but I'll try to explain what I'm trying to do as well:
1) Create a VkSampler with a VkSamplerYcbcrConversion (with the correct format) in pNext
2) Read NV12 data into staging buffer
3) Create VkImage with the correct format and specify that the planes are disjoint
4) Get memory requirements (and offset for plane 1) for each plane (0 and 1)
5) Allocate device local memory for the image data
6) Bind each plane to the correct location in memory
7) Copy staging buffer to image memory
8) Create VkImageView with the same format as the VkImage and the same VkSamplerYcbcrConversionInfo as the VkSampler in pNext.
...ANSWER
Answered 2019-Jan-09 at 11:19Solution: according to the spec, sec. 12.1, Conversion must be fixed at pipeline creation time, through use of a combined image sampler with an immutable sampler in VkDescriptorSetLayoutBinding.
By adding the ycbcr_sampler to pImmutableSamplers when setting up the descriptor set layout binding it now works:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install VK-GL-CTS
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page