shaderc: Added SPIR-V stub.
This commit is contained in:
parent
ece1a0e49b
commit
2380221c81
@ -10,7 +10,7 @@ function overridefiles(_srcPath, _dstPath, _files)
|
||||
for _, file in ipairs(_files) do
|
||||
file = path.getrelative(_srcPath, file)
|
||||
local filePath = path.join(BGFX_DIR, "../bgfx-ext", file)
|
||||
if not os.isfile(filePath) then print(filePath .. " not found") return end
|
||||
if not os.isfile(filePath) then return end
|
||||
|
||||
table.insert(remove, path.join(_srcPath, file))
|
||||
table.insert(add, filePath)
|
||||
|
@ -118,4 +118,8 @@ project "shaderc"
|
||||
path.join(BGFX_DIR, "tools/shaderc/shaderc_pssl.cpp"),
|
||||
})
|
||||
|
||||
overridefiles(BGFX_DIR, path.join(BGFX_DIR, "../bgfx-ext"), {
|
||||
path.join(BGFX_DIR, "tools/shaderc/shaderc_spirv.cpp"),
|
||||
})
|
||||
|
||||
strip()
|
||||
|
@ -132,6 +132,7 @@ namespace bgfx
|
||||
bool compileGLSLShader(bx::CommandLine& _cmdLine, uint32_t _version, const std::string& _code, bx::WriterI* _writer);
|
||||
bool compileHLSLShader(bx::CommandLine& _cmdLine, uint32_t _version, const std::string& _code, bx::WriterI* _writer);
|
||||
bool compilePSSLShader(bx::CommandLine& _cmdLine, uint32_t _version, const std::string& _code, bx::WriterI* _writer);
|
||||
bool compileSPIRVShader(bx::CommandLine& _cmdLine, uint32_t _version, const std::string& _code, bx::WriterI* _writer);
|
||||
|
||||
} // namespace bgfx
|
||||
|
||||
|
17
tools/shaderc/shaderc_spirv.cpp
Normal file
17
tools/shaderc/shaderc_spirv.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright 2011-2016 Branimir Karadzic. All rights reserved.
|
||||
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
|
||||
*/
|
||||
|
||||
#include "shaderc.h"
|
||||
|
||||
namespace bgfx
|
||||
{
|
||||
bool compileSPIRVShader(bx::CommandLine& _cmdLine, uint32_t _version, const std::string& _code, bx::WriterI* _writer)
|
||||
{
|
||||
BX_UNUSED(_cmdLine, _version, _code, _writer);
|
||||
fprintf(stderr, "SPIR-V compiler is not supported.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace bgfx
|
Loading…
Reference in New Issue
Block a user