mirror of
https://github.com/amerkoleci/Vortice.Win32.git
synced 2026-01-14 08:06:02 +08:00
Update json to metadata to 61.0.15-preview, regenerate bindings and bump version to 2.2.0
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
|
||||
<TargetFrameworks>net8.0</TargetFrameworks>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<IsPackable>false</IsPackable>
|
||||
<RootNamespace>ClearScreen</RootNamespace>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
using System.Numerics;
|
||||
@@ -120,14 +120,14 @@ public static unsafe class Program
|
||||
TestD2D1AndDWrite();
|
||||
|
||||
using ComPtr<IDXGIFactory2> factory = default;
|
||||
uint factoryFlags = 0;
|
||||
CreateFactoryFlags factoryFlags = CreateFactoryFlags.None;
|
||||
|
||||
#if DEBUG
|
||||
{
|
||||
using ComPtr<IDXGIInfoQueue> dxgiInfoQueue = default;
|
||||
if (DXGIGetDebugInterface1(0, __uuidof<IDXGIInfoQueue>(), (void**)dxgiInfoQueue.GetAddressOf()).Success)
|
||||
{
|
||||
factoryFlags = DXGI_CREATE_FACTORY_DEBUG;
|
||||
factoryFlags = CreateFactoryFlags.Debug;
|
||||
|
||||
dxgiInfoQueue.Get()->SetBreakOnSeverity(DXGI_DEBUG_ALL, InfoQueueMessageSeverity.Error, true);
|
||||
dxgiInfoQueue.Get()->SetBreakOnSeverity(DXGI_DEBUG_ALL, InfoQueueMessageSeverity.Corruption, true);
|
||||
|
||||
@@ -1,21 +1,12 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Copyright (c) Amer Koleci and contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
using Win32;
|
||||
using Win32.Graphics.Direct3D;
|
||||
using Win32.Graphics.Direct3D11;
|
||||
using Win32.Graphics.Dxgi;
|
||||
using static Win32.Apis;
|
||||
using static Win32.Graphics.Direct3D11.Apis;
|
||||
using static Win32.Graphics.Dxgi.Apis;
|
||||
using MessageId = Win32.Graphics.Direct3D11.MessageId;
|
||||
using InfoQueueFilter = Win32.Graphics.Direct3D11.InfoQueueFilter;
|
||||
using Win32.Graphics.Dxgi.Common;
|
||||
using System.Drawing;
|
||||
using System.Numerics;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace ClearScreen;
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public readonly struct VertexPositionColor
|
||||
{
|
||||
public static readonly unsafe int SizeInBytes = sizeof(VertexPositionColor);
|
||||
|
||||
Reference in New Issue
Block a user