99ceb03a1c
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
23 lines
704 B
C++
23 lines
704 B
C++
// SPDX-FileCopyrightText: Copyright 2018 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include <cstring>
|
|
|
|
#include "common/common_types.h"
|
|
#include "video_core/renderer_vulkan/vk_shader_util.h"
|
|
#include "video_core/vulkan_common/vulkan_device.h"
|
|
#include "video_core/vulkan_common/vulkan_wrapper.h"
|
|
|
|
namespace Vulkan {
|
|
|
|
vk::ShaderModule BuildShader(const Device& device, std::span<const u32> code) {
|
|
return device.GetLogical().CreateShaderModule({
|
|
.sType = VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO,
|
|
.pNext = nullptr,
|
|
.flags = 0,
|
|
.codeSize = static_cast<u32>(code.size_bytes()),
|
|
.pCode = code.data(),
|
|
});
|
|
}
|
|
|
|
} // namespace Vulkan
|