Various improvements.

This commit is contained in:
Amer Koleci
2023-01-04 15:43:59 +01:00
parent c2a59c7720
commit 8e121c63a1
4 changed files with 85 additions and 6 deletions

View File

@@ -0,0 +1,39 @@
// Copyright © Amer Koleci and Contributors.
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
namespace Win32.Graphics.Direct3D11;
unsafe partial struct ID3DUserDefinedAnnotation
{
public int BeginEvent(string name)
{
fixed (char* namePtr = name)
{
return BeginEvent((ushort*)namePtr);
}
}
public int BeginEvent(ReadOnlySpan<char> name)
{
fixed (char* namePtr = name)
{
return BeginEvent((ushort*)namePtr);
}
}
public void SetMarker(string name)
{
fixed (char* namePtr = name)
{
SetMarker((ushort*)namePtr);
}
}
public void SetMarker(ReadOnlySpan<char> name)
{
fixed (char* namePtr = name)
{
SetMarker((ushort*)namePtr);
}
}
}