glad icon indicating copy to clipboard operation
glad copied to clipboard

glad2 vulkan 1.4: "vulkan_video_codec_h264std_encode.h" can not be found

Open sdragonx opened this issue 1 year ago • 5 comments

#include "vk_video/vulkan_video_codec_h264std_encode.h"

"vulkan_video_codec_h264std_encode.h" can not be found, It's not included in the Lunarg Vulkan SDK either.

sdragonx avatar Jan 06 '25 12:01 sdragonx

The file is available here: https://raw.githubusercontent.com/KhronosGroup/Vulkan-Headers/main/include/vk_video/vulkan_video_codec_h264std_encode.h

But glad should include it automatically if it is required. Can you paste the full commandline arguments you used to generate the files (found in any of the glad generated header files), e.g.:

 * Commandline:
 *    --api='gl:compatibility=4.4' --extensions='' c

Dav1dde avatar Jan 06 '25 13:01 Dav1dde

i choose 'vulkan' only.

https://gen.glad.sh/

无标题

sdragonx avatar Jan 06 '25 17:01 sdragonx

This configuration doesn't require the vulkan_video_codec_h264std_encode header (also does not include it), that's why it's not generated.

If you select a feature/extension which requires the header, it will be included.

Dav1dde avatar Jan 06 '25 17:01 Dav1dde

select "KHR" and "EXT" in the extension to include this file.

sdragonx avatar Jan 06 '25 17:01 sdragonx

the file doesn't appear when adding all extensions

Image

Image

SamuelH98 avatar Jan 18 '25 18:01 SamuelH98