Added shader compilation unit test
このコミットが含まれているのは:
1 親
4811769ebc
コミット
2ea4ddfbcb
2ファイル変更
+53
-3
検索条件に一致するファイルはありません
@@ -76,15 +76,14 @@ namespace ComputeSharp.Shaders.Translation
|
||||
}
|
||||
|
||||
// Try to compile the new compute shader
|
||||
fixed (char* shaderName = "")
|
||||
fixed (char* entryPoint = "CSMain")
|
||||
fixed (char* shaderProfile = "cs_6_1")
|
||||
fixed (char* optimization = "-O3")
|
||||
{
|
||||
char nullTerminator = '\0';
|
||||
|
||||
DxcCompiler.Get()->Compile(
|
||||
dxcBlobEncoding.Upcast<IDxcBlobEncoding, IDxcBlob>().Get(),
|
||||
(ushort*)&nullTerminator,
|
||||
(ushort*)shaderName,
|
||||
(ushort*)entryPoint,
|
||||
(ushort*)shaderProfile,
|
||||
(ushort**)&optimization,
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする