mirror of
https://github.com/amerkoleci/Vortice.Win32.git
synced 2026-01-14 16:16:04 +08:00
Various improvements.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user