Skip to content

Commit afa4935

Browse files
committed
maybe
Signed-off-by: Ali Cheraghi <alichraghi@proton.me>
1 parent 99f9386 commit afa4935

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

src/nbl/asset/utils/CHLSLCompiler.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
#include <sstream>
1919
#include <dxc/dxcapi.h>
2020

21-
#include "lzma/C/LzmaEnc.h"
22-
2321
using namespace nbl;
2422
using namespace nbl::asset;
2523
using Microsoft::WRL::ComPtr;
@@ -375,9 +373,6 @@ std::string CHLSLCompiler::preprocessShader(std::string&& code, IShader::E_SHADE
375373
return preprocessShader(std::move(code), stage, preprocessOptions, extra_dxc_compile_flags);
376374
}
377375

378-
static void* SzAlloc(ISzAllocPtr p, size_t size) { p = p; return _NBL_ALIGNED_MALLOC(size, _NBL_SIMD_ALIGNMENT); }
379-
static void SzFree(ISzAllocPtr p, void* address) { p = p; _NBL_ALIGNED_FREE(address); }
380-
381376
core::smart_refctd_ptr<ICPUShader> CHLSLCompiler::compileToSPIRV_impl(const std::string_view code, const IShaderCompiler::SCompilerOptions& options, std::vector<CCache::SEntry::SPreprocessingDependency>* dependencies) const
382377
{
383378
auto hlslOptions = option_cast(options);

src/nbl/asset/utils/IShaderCompiler.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,6 @@ core::smart_refctd_ptr<IShaderCompiler::CCache> IShaderCompiler::CCache::deseria
414414

415415
memcpy(code->getPointer(), serializedCache.data() + SHADER_BUFFER_SIZE_BYTES + shaderCreationParams[i].offset, shaderCreationParams[i].codeByteSize);
416416
code->setContentHash(code->computeContentHash());
417-
// Create the ICPUShader
418417
entries[i].spirv = std::move(code);
419418

420419
retVal->insert(std::move(entries[i]));

0 commit comments

Comments
 (0)