Minor code tweaks to DX12 generator
このコミットが含まれているのは:
1 親
ac66eb7827
コミット
35bc8ce649
3ファイル変更
+31
-19
検索条件に一致するファイルはありません
+4
-4
@@ -202,7 +202,7 @@ partial class D2DPixelShaderDescriptorGenerator
|
||||
token.ThrowIfCancellationRequested();
|
||||
|
||||
// Compile the shader bytecode using the effective parameters
|
||||
using ComPtr<ID3DBlob> dxcBlobBytecode = D3DCompiler.Compile(
|
||||
using ComPtr<ID3DBlob> d3DBlob = D3DCompiler.Compile(
|
||||
key.HlslSource.AsSpan(),
|
||||
key.ShaderProfile,
|
||||
key.CompileOptions);
|
||||
@@ -210,12 +210,12 @@ partial class D2DPixelShaderDescriptorGenerator
|
||||
token.ThrowIfCancellationRequested();
|
||||
|
||||
// Check whether double precision operations are required
|
||||
bool requiresDoublePrecisionSupport = D3DCompiler.IsDoublePrecisionSupportRequired(dxcBlobBytecode.Get());
|
||||
bool requiresDoublePrecisionSupport = D3DCompiler.IsDoublePrecisionSupportRequired(d3DBlob.Get());
|
||||
|
||||
token.ThrowIfCancellationRequested();
|
||||
|
||||
byte* buffer = (byte*)dxcBlobBytecode.Get()->GetBufferPointer();
|
||||
int length = checked((int)dxcBlobBytecode.Get()->GetBufferSize());
|
||||
byte* buffer = (byte*)d3DBlob.Get()->GetBufferPointer();
|
||||
int length = checked((int)d3DBlob.Get()->GetBufferSize());
|
||||
|
||||
byte[] array = new ReadOnlySpan<byte>(buffer, length).ToArray();
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする