mirror of
https://github.com/AxioDL/boo.git
synced 2025-07-02 19:26:05 +00:00
D3D11: Convert const char* pointers to arrays
Reduces binary size a little, as only the string data will be stored in the executable and not a pointer to accompany it as well. A trivial change that's essentially "free".
This commit is contained in:
parent
4605581d6f
commit
8642d71e89
@ -24,7 +24,7 @@ extern pD3DCompile D3DCompilePROC;
|
||||
extern pD3DPERF_BeginEvent D3DPERF_BeginEventPROC;
|
||||
extern pD3DPERF_EndEvent D3DPERF_EndEventPROC;
|
||||
|
||||
static const char* GammaVS =
|
||||
constexpr char GammaVS[] =
|
||||
"struct VertData\n"
|
||||
"{\n"
|
||||
" float4 posIn : POSITION;\n"
|
||||
@ -45,7 +45,7 @@ static const char* GammaVS =
|
||||
" return vtf;\n"
|
||||
"}\n";
|
||||
|
||||
static const char* GammaFS =
|
||||
constexpr char GammaFS[] =
|
||||
"struct VertToFrag\n"
|
||||
"{\n"
|
||||
" float4 pos : SV_Position;\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user