mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Use default set of glslang limits instead of 0s, which might fail
This commit is contained in:
@@ -260,11 +260,10 @@ GLuint MakeSeparableShaderProgram(WrappedOpenGL &drv, GLenum type, vector<string
|
||||
sh.setEnvClient(glslang::EShClientOpenGL, glslang::EShTargetOpenGL_450);
|
||||
sh.setEnvTarget(glslang::EShTargetNone, glslang::EShTargetSpv_1_0);
|
||||
|
||||
TBuiltInResource res = {};
|
||||
glslang::TShader::ForbidIncluder incl;
|
||||
|
||||
bool success =
|
||||
sh.preprocess(&res, 100, ENoProfile, false, false, EShMsgOnlyPreprocessor, &src, incl);
|
||||
bool success = sh.preprocess(&DefaultResources, 100, ENoProfile, false, false,
|
||||
EShMsgOnlyPreprocessor, &src, incl);
|
||||
|
||||
if(!success)
|
||||
{
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
#include "3rdparty/glslang/SPIRV/spirv.hpp"
|
||||
#include "3rdparty/glslang/glslang/Include/ResourceLimits.h"
|
||||
#include "api/replay/renderdoc_replay.h"
|
||||
|
||||
using std::string;
|
||||
@@ -178,6 +179,8 @@ glslang::TShader *CompileShaderForReflection(SPIRVShaderStage stage,
|
||||
const std::vector<std::string> &sources);
|
||||
glslang::TProgram *LinkProgramForReflection(const std::vector<glslang::TShader *> &shaders);
|
||||
|
||||
extern TBuiltInResource DefaultResources;
|
||||
|
||||
enum class ReflectionInterface
|
||||
{
|
||||
Input,
|
||||
|
||||
Reference in New Issue
Block a user