Fix Editor build on Linux
This commit is contained in:
@@ -24,6 +24,9 @@ private:
|
||||
public:
|
||||
|
||||
LightmapUVsDensityMaterialShader();
|
||||
virtual ~LightmapUVsDensityMaterialShader()
|
||||
{
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -22,6 +22,9 @@ private:
|
||||
public:
|
||||
|
||||
VertexColorsMaterialShader();
|
||||
virtual ~VertexColorsMaterialShader()
|
||||
{
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
|
||||
8
Source/ThirdParty/glslang/glslang.Build.cs
vendored
8
Source/ThirdParty/glslang/glslang.Build.cs
vendored
@@ -24,6 +24,9 @@ public class glslang : DepsModule
|
||||
base.Setup(options);
|
||||
|
||||
var depsRoot = options.DepsFolder;
|
||||
switch (options.Platform.Target)
|
||||
{
|
||||
case TargetPlatform.Windows:
|
||||
options.OutputFiles.Add(Path.Combine(depsRoot, "GenericCodeGen.lib"));
|
||||
options.OutputFiles.Add(Path.Combine(depsRoot, "glslang.lib"));
|
||||
options.OutputFiles.Add(Path.Combine(depsRoot, "HLSL.lib"));
|
||||
@@ -31,5 +34,10 @@ public class glslang : DepsModule
|
||||
options.OutputFiles.Add(Path.Combine(depsRoot, "OSDependent.lib"));
|
||||
options.OutputFiles.Add(Path.Combine(depsRoot, "OGLCompiler.lib"));
|
||||
options.OutputFiles.Add(Path.Combine(depsRoot, "SPIRV.lib"));
|
||||
break;
|
||||
case TargetPlatform.Linux:
|
||||
break;
|
||||
default: throw new InvalidPlatformException(options.Platform.Target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,7 +25,15 @@ public class spirv_tools : DepsModule
|
||||
base.Setup(options);
|
||||
|
||||
var depsRoot = options.DepsFolder;
|
||||
switch (options.Platform.Target)
|
||||
{
|
||||
case TargetPlatform.Windows:
|
||||
options.OutputFiles.Add(Path.Combine(depsRoot, "SPIRV-Tools.lib"));
|
||||
options.OutputFiles.Add(Path.Combine(depsRoot, "SPIRV-Tools-opt.lib"));
|
||||
break;
|
||||
case TargetPlatform.Linux:
|
||||
break;
|
||||
default: throw new InvalidPlatformException(options.Platform.Target);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -536,6 +536,7 @@ namespace Flax.Build.Bindings
|
||||
if (apiType.IsStruct && !apiType.IsPod)
|
||||
{
|
||||
// Use wrapper structure that represents the memory layout of the managed data
|
||||
needLocalVariable = true;
|
||||
if (!CppUsedNonPodTypes.Contains(apiType))
|
||||
CppUsedNonPodTypes.Add(apiType);
|
||||
type = apiType.Name + "Managed";
|
||||
|
||||
Reference in New Issue
Block a user