blob: a62d94495c04109d5bee4e10a283ab124a6c0a65 [file] [log] [blame]
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#pragma once
#include "flutter/fml/logging.h"
#include "impeller/base/validation.h"
#define VK_NO_PROTOTYPES
#if !defined(NDEBUG)
#define VULKAN_HPP_ASSERT FML_CHECK
#else
#define VULKAN_HPP_ASSERT(ignored) \
{}
#endif
#define VULKAN_HPP_NAMESPACE impeller::vk
#define VULKAN_HPP_ASSERT_ON_RESULT(ignored) \
{ [[maybe_unused]] auto res = (ignored); }
#include "vulkan/vulkan.hpp"
static_assert(VK_HEADER_VERSION >= 215,
"Vulkan headers are must not be too old.");
#include "flutter/flutter_vma/flutter_vma.h"
namespace impeller {
const uint32_t kMaxFramesInFlight = 2;
struct QueueVK {
size_t family = 0;
size_t index = 0;
};
} // namespace impeller