mirror of
https://github.com/amerkoleci/Vortice.Win32.git
synced 2026-01-14 08:06:02 +08:00
40 lines
873 B
C#
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);
|
|
}
|
|
}
|
|
}
|