Preparing for Writeup

This commit is contained in:
Dynamitos committed 2021-10-15 23:12:29 +02:00
1 parent 2cb70d7b16
commit b1d8ef4120
40 files changed
+284 -192

No files matched your search

+2 -2
View File
@@ -2,7 +2,7 @@
#include "VulkanGraphics.h"
#include "VulkanDescriptorSets.h"
#include "slang.h"
//#include "spirv_cross/spirv_reflect.hpp"
#include "stdlib.h"
using namespace slang;
using namespace Seele;
@@ -55,7 +55,7 @@ static SlangStage getStageFromShaderType(ShaderType type)
void Shader::create(const ShaderCreateInfo& createInfo)
{
entryPointName = createInfo.entryPoint;
static SlangSession* session = spCreateSession(NULL);
static SlangSession* session = spCreateSession(nullptr);
SlangCompileRequest* request = spCreateCompileRequest(session);
int targetIndex = spAddCodeGenTarget(request, SLANG_SPIRV);