mirror of
https://github.com/rt64/rt64.git
synced 2024-12-27 06:17:07 +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.
|
// Generate vertex shader.
|
||||||
std::stringstream vss;
|
std::stringstream vss;
|
||||||
vss << RenderParamsText;
|
vss << std::string_view(RenderParamsText, sizeof(RenderParamsText));
|
||||||
vss << "RenderParams getRenderParams() {" + renderParamsCode + "; return rp; }";
|
vss << "RenderParams getRenderParams() {" + renderParamsCode + "; return rp; }";
|
||||||
vss <<
|
vss <<
|
||||||
"void RasterVS(const RenderParams, in float4, in float2, in float4, out float4, out float2, out float4, out float4);"
|
"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.
|
// Generate pixel shader.
|
||||||
std::stringstream pss;
|
std::stringstream pss;
|
||||||
pss << RenderParamsText;
|
pss << std::string_view(RenderParamsText, sizeof(RenderParamsText));
|
||||||
pss << "RenderParams getRenderParams() {" + renderParamsCode + "; return rp; }";
|
pss << "RenderParams getRenderParams() {" + renderParamsCode + "; return rp; }";
|
||||||
pss <<
|
pss <<
|
||||||
"bool RasterPS(const RenderParams, bool, float4, float2, float4, float4, uint, out float4, out float4, out float);"
|
"bool RasterPS(const RenderParams, bool, float4, float2, float4, float4, uint, out float4, out float4, out float);"
|
||||||
|
Loading…
Reference in New Issue
Block a user