Minor code refactoring
このコミットが含まれているのは:
1 親
e370068ff6
コミット
0896d368e4
3ファイル変更
+2
-6
検索条件に一致するファイルはありません
@@ -35,11 +35,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Remove="Assets\ShaderTemplate.mustache" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="Assets\ShaderTemplate.mustache">
|
||||
<Content Include="Renderer\Templates\ShaderTemplate.mustache">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace ComputeSharp.Shaders.Renderer
|
||||
string
|
||||
assemblyPath = Assembly.GetExecutingAssembly().Location,
|
||||
assemblyDirectory = Path.GetDirectoryName(assemblyPath) ?? throw new InvalidOperationException("Can't find the assembly directory"),
|
||||
templatePath = Path.Combine(assemblyDirectory, "Assets", "ShaderTemplate.mustache");
|
||||
templatePath = Path.Combine(assemblyDirectory, "Renderer", "Templates", "ShaderTemplate.mustache");
|
||||
Template = File.ReadAllText(templatePath);
|
||||
}
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする