/*==========================================================================; * * Copyright (C) Microsoft Corporation. All Rights Reserved. * * File: pix3.h * Content: PIX include file * ****************************************************************************/ // The following methods in this file have been ported from the // pix3.h file in the winpixeventruntime.1.0.220124001 package. using System.Runtime.CompilerServices; namespace ComputeSharp.Interop; /// partial class Pix { /// /// Gets a value representing a color for a PIX event. /// /// The red channel value for the color. /// The green channel value for the color. /// The blue channel value for the color. /// A value representing a color for a PIX event. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint PIX_COLOR(byte r, byte g, byte b) { return 0xFF000000 | ((uint)r << 16) | ((uint)g << 8) | b; } /// /// Gets a value representing an indexed color for a PIX event. /// /// The index of the event to get the color for. /// A value representing an indexed color for a PIX event. [MethodImpl(MethodImplOptions.AggressiveInlining)] public static uint PIX_COLOR_INDEX(byte i) { return i; } }