mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
ShaderGen: Handle ShaderCode objects directly.
ShaderGeneratorInterface does not have virtual function members, so we have to implement each type explicitly.
This commit is contained in:
@ -69,11 +69,7 @@ static inline void GenerateGeometryShader(T& out, u32 components, API_TYPE ApiTy
|
||||
"\tfloat4 " I_STEREOPROJECTION"[8];\n"
|
||||
"};\n");
|
||||
|
||||
ShaderCode code;
|
||||
char buf[16384];
|
||||
code.SetBuffer(buf);
|
||||
GenerateVSOutputStructForGS(code, ApiType);
|
||||
out.Write(code.GetBuffer());
|
||||
GenerateVSOutputStruct(out, ApiType);
|
||||
|
||||
out.Write("centroid in VS_OUTPUT v[];\n");
|
||||
out.Write("centroid out VS_OUTPUT o;\n");
|
||||
|
Reference in New Issue
Block a user