mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 02:08:49 +12:00
rsx: Move SPIRV stuff into common code
This commit is contained in:
parent
afcfd81496
commit
4594c912a6
13 changed files with 238 additions and 191 deletions
|
@ -2,7 +2,8 @@
|
|||
#include "VKProgramPipeline.h"
|
||||
#include "vkutils/descriptors.h"
|
||||
#include "vkutils/device.h"
|
||||
#include <string>
|
||||
|
||||
#include "../Program/SPIRVCommon.h"
|
||||
|
||||
namespace vk
|
||||
{
|
||||
|
@ -20,7 +21,7 @@ namespace vk
|
|||
{
|
||||
ensure(m_handle == VK_NULL_HANDLE);
|
||||
|
||||
if (!vk::compile_glsl_to_spv(m_source, type, m_compiled))
|
||||
if (!spirv::compile_glsl_to_spv(m_compiled, m_source, type, ::glsl::glsl_rules_vulkan))
|
||||
{
|
||||
const std::string shader_type = type == ::glsl::program_domain::glsl_vertex_program ? "vertex" :
|
||||
type == ::glsl::program_domain::glsl_fragment_program ? "fragment" : "compute";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue