mirror of
https://github.com/rt64/rt64.git
synced 2024-12-26 21:18:31 +00:00
Use string view on render params text.
This commit is contained in:
parent
c26343fb19
commit
92886baaa3
@ -198,7 +198,7 @@ namespace RT64 {
|
||||
|
||||
// Generate vertex shader.
|
||||
std::stringstream vss;
|
||||
vss << RenderParamsText;
|
||||
vss << std::string_view(RenderParamsText, sizeof(RenderParamsText));
|
||||
vss << "RenderParams getRenderParams() {" + renderParamsCode + "; return rp; }";
|
||||
vss <<
|
||||
"void RasterVS(const RenderParams, in float4, in float2, in float4, out float4, out float2, out float4, out float4);"
|
||||
@ -224,7 +224,7 @@ namespace RT64 {
|
||||
|
||||
// Generate pixel shader.
|
||||
std::stringstream pss;
|
||||
pss << RenderParamsText;
|
||||
pss << std::string_view(RenderParamsText, sizeof(RenderParamsText));
|
||||
pss << "RenderParams getRenderParams() {" + renderParamsCode + "; return rp; }";
|
||||
pss <<
|
||||
"bool RasterPS(const RenderParams, bool, float4, float2, float4, float4, uint, out float4, out float4, out float);"
|
||||
|
Loading…
Reference in New Issue
Block a user