Skip to content

Commit

Permalink
Add missing include guard to vulkan_video.hpp (#1723)
Browse files Browse the repository at this point in the history
  • Loading branch information
asuessenbach authored Nov 9, 2023
1 parent 2e5e845 commit 1620b8b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions VideoHppGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ void VideoHppGenerator::generateHppFile() const
std::cout << "VideoHppGenerator: Generating " << video_hpp << " ... " << std::endl;

std::string const videoHppTemplate = R"(${copyrightMessage}
#ifndef VULKAN_VIDEO_HPP
#define VULKAN_VIDEO_HPP
#include <vk_video/vulkan_video_codecs_common.h>
#include <vk_video/vulkan_video_codec_h264std.h>
#include <vk_video/vulkan_video_codec_h264std_decode.h>
Expand Down
3 changes: 3 additions & 0 deletions vulkan/vulkan_video.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

// This header is generated from the Khronos Vulkan XML API Registry.

#ifndef VULKAN_VIDEO_HPP
#define VULKAN_VIDEO_HPP

#include <vk_video/vulkan_video_codec_h264std.h>
#include <vk_video/vulkan_video_codec_h264std_decode.h>
#include <vk_video/vulkan_video_codec_h264std_encode.h>
Expand Down

0 comments on commit 1620b8b

Please sign in to comment.