Files
Vortice.Win32/src/Vortice.Win32.Graphics.Direct3D11/ID3DUserDefinedAnnotation.cs
2023-01-04 15:43:59 +01:00

40 lines
873 B
C#

// 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);
}
}
}