Skip to content

Commit 4a6a47d

Browse files
committed
final winappsdk 2.0 exp3
1 parent f3b5807 commit 4a6a47d

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

Samples/WindowsAIFoundry/cs-winui/Properties/launchSettings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"profiles": {
33
"WindowsAISample (Package)": {
44
"commandName": "MsixPackage",
5-
"nativeDebugging": true,
5+
"nativeDebugging": false,
66
"hotReloadEnabled": true
77
},
88
"WindowsAISample (Unpackaged)": {

Samples/WindowsAIFoundry/cs-winui/Util/SoftwareBitmapExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ public static SoftwareBitmap ConvertBgr8ImageBufferToBgra8SoftwareBitmap(ImageBu
146146

147147
for (int i = 0, j = 0; i < bgrBuffer.Length; i += 3, j += 4)
148148
{
149-
bgraBuffer[j] = bgrBuffer[i]; // B
150-
bgraBuffer[j + 1] = bgrBuffer[i + 1]; // G
151-
bgraBuffer[j + 2] = bgrBuffer[i + 2]; // R
152-
bgraBuffer[j + 3] = 255; // A (full opacity)
149+
bgraBuffer[j] = bgrBuffer[i]; // B
150+
bgraBuffer[j + 1] = bgrBuffer[i + 1]; // G
151+
bgraBuffer[j + 2] = bgrBuffer[i + 2]; // R
152+
bgraBuffer[j + 3] = 255; // A (full opacity)
153153
}
154154

155155
// Create SoftwareBitmap and copy data

Samples/WindowsAIFoundry/cs-winui/WindowsAISample.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,8 @@
5555

5656
<ItemGroup>
5757
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.3.1" />
58-
<PackageReference Include="Microsoft.Windows.AI.Video" Version="1.2512.156-stable-g3f4446bac0" />
5958
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.26100.4654" />
60-
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.8.250916003" />
61-
<!--<PackageReference Include="Microsoft.WindowsAppSDK.AI" Version="1.8.38" />-->
62-
<PackageReference Include="Microsoft.WindowsAppSDK.ML" Version="1.8.2091" />
59+
<PackageReference Include="Microsoft.WindowsAppSDK" Version="2.0.0-experimental3" />
6360
<Manifest Include="$(ApplicationManifest)" />
6461
</ItemGroup>
6562

0 commit comments

Comments
 (0)