Skip to content

Commit 5061796

Browse files
committed
SDSL: emit UserTypeGOOGLE + NonWritable on rgroup StructuredBuffer vars
Stage-scoped StructuredBuffer<T> declarations in ShaderMember.Compile already emit these decorations so SPIRV-Cross maps them to the correct HLSL type. The rgroup path forgot to, leaving rgroup-declared read-only StructuredBuffer<T> (e.g. TransformationInstancing.InstanceWorld) to drop through SPIRV-Cross as RWByteAddressBuffer on a UAV register. Regression-tested via CSStructuredBuffer + rgroup.
2 parents ad8b696 + e098bc8 commit 5061796

20 files changed

Lines changed: 198 additions & 53 deletions

.github/workflows/build-android.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
run: |
9292
dotnet build build\Stride.Android.slnf `
9393
-p:StrideNativeBuildMode=Clang `
94-
-m:1 -nr:false `
94+
-nr:false `
9595
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
9696
-p:StridePlatforms=Android `
9797
-p:StrideSkipUnitTests=true `

.github/workflows/build-assembly-processor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
- name: Build
5252
run: |
5353
dotnet build build\Stride.AssemblyProcessor.sln `
54-
-restore -m:1 -nr:false `
54+
-restore -nr:false `
5555
-v:m -p:WarningLevel=0 `
5656
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
5757
-p:StrideSkipUnitTests=true `

.github/workflows/build-ios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
run: |
6060
dotnet build build\Stride.iOS.slnf `
6161
-p:StrideNativeBuildMode=Clang `
62-
-m:1 -nr:false `
62+
-nr:false `
6363
-v:m -p:WarningLevel=0 `
6464
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
6565
-p:StridePlatforms=iOS `

.github/workflows/build-linux-runtime.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
run: |
5858
dotnet build build\Stride.Runtime.slnf `
5959
-p:StrideNativeBuildMode=Clang `
60-
-m:1 -nr:false `
60+
-nr:false `
6161
-v:m -p:WarningLevel=0 `
6262
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
6363
-p:StridePlatforms=Linux `

.github/workflows/build-vs-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
- name: Build
4343
run: |
4444
msbuild build\Stride.VisualStudio.sln `
45-
-restore -m:1 -nr:false `
45+
-restore -nr:false `
4646
-v:m -p:WarningLevel=0 `
4747
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
4848
-p:StrideSkipUnitTests=true `

.github/workflows/build-windows-full.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
run: |
5353
dotnet build build\Stride.sln `
5454
-p:StrideNativeBuildMode=Clang `
55-
-m:1 -nr:false `
55+
-nr:false `
5656
-v:m -p:WarningLevel=0 `
5757
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
5858
-p:StridePlatforms=Windows `

.github/workflows/build-windows-runtime.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
run: |
6969
dotnet build build\Stride.Runtime.slnf `
7070
-p:StrideNativeBuildMode=Clang `
71-
-m:1 -nr:false `
71+
-nr:false `
7272
-v:m -p:WarningLevel=0 `
7373
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
7474
-p:StridePlatforms=Windows `

.github/workflows/test-linux-game.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
dotnet build build\Stride.Tests.Game.GPU.slnf `
6969
-p:StrideTestRuntimeIdentifier=linux-x64 `
7070
-p:StrideNativeBuildMode=Clang `
71-
-m:1 -nr:false `
71+
-nr:false `
7272
-v:m -p:WarningLevel=0 `
7373
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
7474
-p:StridePlatform=Linux `
@@ -79,7 +79,7 @@ jobs:
7979
dotnet build build\Stride.Tests.Game.Linux.slnf `
8080
-p:StrideTestRuntimeIdentifier=linux-x64 `
8181
-p:StrideNativeBuildMode=Clang `
82-
-m:1 -nr:false `
82+
-nr:false `
8383
-v:m -p:WarningLevel=0 `
8484
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
8585
-p:StridePlatform=Linux `

.github/workflows/test-linux-simple.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
dotnet build build\Stride.Tests.Simple.Linux.slnf `
4141
-p:StrideTestRuntimeIdentifier=linux-x64 `
4242
-p:StrideNativeBuildMode=Clang `
43-
-m:1 -nr:false `
43+
-nr:false `
4444
-v:m -p:WarningLevel=0 `
4545
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
4646
-p:StridePlatform=Linux `

.github/workflows/test-windows-game.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
dotnet build build\Stride.Tests.Game.slnf `
5858
-p:StrideTestRuntimeIdentifier=win-x64 `
5959
-p:StrideNativeBuildMode=Clang `
60-
-m:1 -nr:false `
60+
-nr:false `
6161
-v:m -p:WarningLevel=0 `
6262
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
6363
-p:StridePlatforms=Windows `
@@ -167,7 +167,7 @@ jobs:
167167
dotnet build build\Stride.Tests.Game.GPU.slnf `
168168
-p:StrideTestRuntimeIdentifier=win-x64 `
169169
-p:StrideNativeBuildMode=Clang `
170-
-m:1 -nr:false `
170+
-nr:false `
171171
-v:m -p:WarningLevel=0 `
172172
-p:Configuration=${{ github.event.inputs.build-type || inputs.build-type || 'Debug' }} `
173173
-p:StridePlatforms=Windows `

0 commit comments

Comments
 (0)