chromium/third_party/spirv-tools/src/source/spirv_target_env.cpp

// Copyright (c) 2015-2016 The Khronos Group Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "source/spirv_target_env.h"

#include <cassert>
#include <cstring>
#include <string>
#include <utility>

#include "source/spirv_constant.h"
#include "spirv-tools/libspirv.h"

const char* spvTargetEnvDescription(spv_target_env env) {}

uint32_t spvVersionForTargetEnv(spv_target_env env) {}

static const std::pair<const char*, spv_target_env> spvTargetEnvNameMap[] =;

bool spvParseTargetEnv(const char* s, spv_target_env* env) {}

#define VULKAN_VER(MAJOR, MINOR)
#define SPIRV_VER(MAJOR, MINOR)

struct VulkanEnv {};
// Maps each Vulkan target environment enum to the Vulkan version, and the
// maximum supported SPIR-V version for that Vulkan environment.
// Keep this ordered from least capable to most capable.
static const VulkanEnv ordered_vulkan_envs[] =;

bool spvParseVulkanEnv(uint32_t vulkan_ver, uint32_t spirv_ver,
                       spv_target_env* env) {}

bool spvIsVulkanEnv(spv_target_env env) {}

bool spvIsOpenCLEnv(spv_target_env env) {}

bool spvIsOpenGLEnv(spv_target_env env) {}

bool spvIsValidEnv(spv_target_env env) {}

std::string spvLogStringForEnv(spv_target_env env) {}

std::string spvTargetEnvList(const int pad, const int wrap) {}