diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b031b7911..cc643525d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - go: ['1.18.x', '1.19.x', '1.20.x', '1.21.x'] + go: ['1.18.x', '1.19.x', '1.20.x', '1.21.x', '1.22.0-rc.2'] name: Test with Go ${{ matrix.go }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} env: diff --git a/internal/graphicsdriver/directx/api_32bit_windows.go b/internal/graphicsdriver/directx/api_32bit_windows.go index 2dd7538ad..daf50792e 100644 --- a/internal/graphicsdriver/directx/api_32bit_windows.go +++ b/internal/graphicsdriver/directx/api_32bit_windows.go @@ -40,6 +40,10 @@ type _D3D12_RESOURCE_DESC struct { SampleDesc _DXGI_SAMPLE_DESC Layout _D3D12_TEXTURE_LAYOUT Flags _D3D12_RESOURCE_FLAGS + + // This is a pseudo padding which D3D12_RESOURCE_DESC1 would use. + // Mysteriously, some functions don't work correctly without this hack (#2867). + _ [12]byte } type _D3D12_ROOT_PARAMETER struct {