Fix vulkan VkPipelineShaderStageCreateInfo
This commit is contained in:
@@ -529,7 +529,7 @@ void VKBlitScreen::CreateGraphicsPipeline() {
|
||||
.pNext = nullptr,
|
||||
.flags = 0,
|
||||
.stage = VK_SHADER_STAGE_VERTEX_BIT,
|
||||
.shader_module = *vertex_shader,
|
||||
.vkModule = *vertex_shader,
|
||||
.pName = "main",
|
||||
.pSpecializationInfo = nullptr,
|
||||
},
|
||||
@@ -538,7 +538,7 @@ void VKBlitScreen::CreateGraphicsPipeline() {
|
||||
.pNext = nullptr,
|
||||
.flags = 0,
|
||||
.stage = VK_SHADER_STAGE_FRAGMENT_BIT,
|
||||
.shader_module = *fragment_shader,
|
||||
.vkModule = *fragment_shader,
|
||||
.pName = "main",
|
||||
.pSpecializationInfo = nullptr,
|
||||
},
|
||||
|
||||
@@ -436,7 +436,7 @@ VKComputePass::VKComputePass(const VKDevice& device, VKDescriptorPool& descripto
|
||||
.pNext = nullptr,
|
||||
.flags = 0,
|
||||
.stage = VK_SHADER_STAGE_COMPUTE_BIT,
|
||||
.shader_module = *shader_module,
|
||||
.vkModule = *shader_module,
|
||||
.pName = "main",
|
||||
.pSpecializationInfo = nullptr,
|
||||
},
|
||||
|
||||
@@ -128,7 +128,7 @@ vk::Pipeline VKComputePipeline::CreatePipeline() const {
|
||||
.pNext = nullptr,
|
||||
.flags = 0,
|
||||
.stage = VK_SHADER_STAGE_COMPUTE_BIT,
|
||||
.shader_module = *shader_module,
|
||||
.vkModule = *shader_module,
|
||||
.pName = "main",
|
||||
.pSpecializationInfo = nullptr,
|
||||
},
|
||||
|
||||
@@ -438,7 +438,7 @@ vk::Pipeline VKGraphicsPipeline::CreatePipeline(const RenderPassParams& renderpa
|
||||
stage_ci.pNext = nullptr;
|
||||
stage_ci.flags = 0;
|
||||
stage_ci.stage = MaxwellToVK::ShaderStage(static_cast<Tegra::Engines::ShaderType>(stage));
|
||||
stage_ci.shader_module = *modules[module_index++];
|
||||
stage_ci.module = *modules[module_index++];
|
||||
stage_ci.pName = "main";
|
||||
stage_ci.pSpecializationInfo = nullptr;
|
||||
|
||||
|
||||
@@ -14,7 +14,9 @@
|
||||
#include <vector>
|
||||
|
||||
#define VK_NO_PROTOTYPES
|
||||
#define module vkModule
|
||||
#include <vulkan/vulkan.h>
|
||||
#undef module
|
||||
|
||||
#include "common/common_types.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user