Adjust field visibility, fix naming violations in non test projects
このコミットが含まれているのは:
1 親
f73915bf93
コミット
746f132182
34ファイル変更
+171
-171
検索条件に一致するファイルはありません
@@ -26,17 +26,17 @@ internal sealed unsafe partial class ShaderCompiler
|
||||
/// <summary>
|
||||
/// The <see cref="IDxcCompiler"/> instance to use to create the bytecode for HLSL sources.
|
||||
/// </summary>
|
||||
private readonly ComPtr<IDxcCompiler> DxcCompiler;
|
||||
private readonly ComPtr<IDxcCompiler> dxcCompiler;
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="IDxcLibrary"/> instance to use to work with <see cref="DxcCompiler"/>.
|
||||
/// The <see cref="IDxcLibrary"/> instance to use to work with <see cref="dxcCompiler"/>.
|
||||
/// </summary>
|
||||
private readonly ComPtr<IDxcLibrary> DxcLibrary;
|
||||
private readonly ComPtr<IDxcLibrary> dxcLibrary;
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="IDxcIncludeHandler"/> instance used to compile shaders with <see cref="DxcCompiler"/>.
|
||||
/// The <see cref="IDxcIncludeHandler"/> instance used to compile shaders with <see cref="dxcCompiler"/>.
|
||||
/// </summary>
|
||||
private readonly ComPtr<IDxcIncludeHandler> DxcIncludeHandler;
|
||||
private readonly ComPtr<IDxcIncludeHandler> dxcIncludeHandler;
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="ShaderCompiler"/> instance.
|
||||
@@ -59,9 +59,9 @@ internal sealed unsafe partial class ShaderCompiler
|
||||
|
||||
dxcLibrary.Get()->CreateIncludeHandler(dxcIncludeHandler.GetAddressOf()).Assert();
|
||||
|
||||
DxcCompiler = dxcCompiler.Move();
|
||||
DxcLibrary = dxcLibrary.Move();
|
||||
DxcIncludeHandler = dxcIncludeHandler.Move();
|
||||
this.dxcCompiler = dxcCompiler.Move();
|
||||
this.dxcLibrary = dxcLibrary.Move();
|
||||
this.dxcIncludeHandler = dxcIncludeHandler.Move();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -69,9 +69,9 @@ internal sealed unsafe partial class ShaderCompiler
|
||||
/// </summary>
|
||||
~ShaderCompiler()
|
||||
{
|
||||
DxcCompiler.Dispose();
|
||||
DxcLibrary.Dispose();
|
||||
DxcIncludeHandler.Dispose();
|
||||
dxcCompiler.Dispose();
|
||||
dxcLibrary.Dispose();
|
||||
dxcIncludeHandler.Dispose();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -93,7 +93,7 @@ internal sealed unsafe partial class ShaderCompiler
|
||||
// Get the encoded blob from the source code
|
||||
fixed (char* p = source)
|
||||
{
|
||||
DxcLibrary.Get()->CreateBlobWithEncodingOnHeapCopy(
|
||||
dxcLibrary.Get()->CreateBlobWithEncodingOnHeapCopy(
|
||||
p,
|
||||
(uint)source.Length * 2,
|
||||
1200,
|
||||
@@ -110,7 +110,7 @@ internal sealed unsafe partial class ShaderCompiler
|
||||
{
|
||||
char** arguments = stackalloc char*[3] { optimization, rowMajor, warningsAsErrors };
|
||||
|
||||
DxcCompiler.Get()->Compile(
|
||||
dxcCompiler.Get()->Compile(
|
||||
(IDxcBlob*)dxcBlobEncoding.Get(),
|
||||
(ushort*)shaderName,
|
||||
(ushort*)entryPoint,
|
||||
@@ -119,7 +119,7 @@ internal sealed unsafe partial class ShaderCompiler
|
||||
3,
|
||||
null,
|
||||
0,
|
||||
DxcIncludeHandler.Get(),
|
||||
dxcIncludeHandler.Get(),
|
||||
dxcOperationResult.GetAddressOf()).Assert();
|
||||
}
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする