Bug fixes and optimization to dispatch data buffer
✅ Reduced the cached buffer size from 65KB to 4KB ✅ Fixed out of bounds read when loading dispatch data
このコミットが含まれているのは:
1 親
624c1a35d0
コミット
6a5826fdcc
4ファイル変更
+13
-6
検索条件に一致するファイルはありません
@@ -28,7 +28,7 @@ namespace ComputeSharp
|
||||
/// <summary>
|
||||
/// The alignment boundary for elements in a constant buffer.
|
||||
/// </summary>
|
||||
private const int ElementSizeAlignment = FX.D3D12_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT;
|
||||
private const int ElementAlignment = FX.D3D12_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT;
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="ConstantBuffer{T}"/> instance with the specified parameters.
|
||||
@@ -54,7 +54,7 @@ namespace ComputeSharp
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
private static unsafe int GetPaddedSize()
|
||||
{
|
||||
return AlignmentHelper.Pad(sizeof(T), ElementSizeAlignment);
|
||||
return AlignmentHelper.Pad(sizeof(T), ElementAlignment);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする