diff options
| author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-02-13 15:52:21 -0500 |
|---|---|---|
| committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-03-13 12:16:03 -0500 |
| commit | f6566338ebd6559b0fbe61e1557ee735bf58dcdd (patch) | |
| tree | 6c4163d0dc21dbc5225ac99733de45504ee53e12 /src/video_core/host_shaders/source_shader.h.in | |
| parent | 2985e5e94c82febcf215feb0023f4184b38bb24a (diff) | |
host_shaders: Modify shader cmake integration to allow for larger shaders
using a raw string to encapsulate the entire shader code limits us to shaders of size less than 2KB. This change overcomes this limitation.
Diffstat (limited to 'src/video_core/host_shaders/source_shader.h.in')
| -rw-r--r-- | src/video_core/host_shaders/source_shader.h.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/video_core/host_shaders/source_shader.h.in b/src/video_core/host_shaders/source_shader.h.in index ccdb0d2a9..929dec39b 100644 --- a/src/video_core/host_shaders/source_shader.h.in +++ b/src/video_core/host_shaders/source_shader.h.in @@ -4,6 +4,8 @@ namespace HostShaders { -constexpr std::string_view @CONTENTS_NAME@ = R"(@CONTENTS@)"; +constexpr std::string_view @CONTENTS_NAME@ = { +@CONTENTS@ +}; } // namespace HostShaders |
