// ------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // ------------------------------------------------------------------------------ namespace Win32.Graphics.Direct2D; /// /// ID2D1ComputeInfo [Guid("5598b14b-9fd7-48b7-9bdb-8f0964eb38bc")] [NativeTypeName("struct ID2D1ComputeInfo : ID2D1RenderInfo")] [NativeInheritance("ID2D1RenderInfo")] public unsafe partial struct ID2D1ComputeInfo : ID2D1ComputeInfo.Interface, INativeGuid { public static ref readonly Guid IID_ID2D1ComputeInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { 0x4B, 0xB1, 0x98, 0x55, 0xD7, 0x9F, 0xB7, 0x48, 0x9B, 0xDB, 0x8F, 0x09, 0x64, 0xEB, 0x38, 0xBC }; Debug.Assert(data.Length == Unsafe.SizeOf()); return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); } } #if NET6_0_OR_GREATER static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ComputeInfo)); #else public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1ComputeInfo)); #endif public void** lpVtbl; /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(0)] public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) { #if NET6_0_OR_GREATER return ((delegate* unmanaged)(lpVtbl[0]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), riid, ppvObject); #else return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), riid, ppvObject); #endif } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(1)] [return: NativeTypeName("ULONG")] public uint AddRef() { #if NET6_0_OR_GREATER return ((delegate* unmanaged)(lpVtbl[1]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this)); #else return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this)); #endif } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(2)] [return: NativeTypeName("ULONG")] public uint Release() { #if NET6_0_OR_GREATER return ((delegate* unmanaged)(lpVtbl[2]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this)); #else return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this)); #endif } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(3)] public HResult SetInputDescription(uint inputIndex, InputDescription inputDescription) { #if NET6_0_OR_GREATER return ((delegate* unmanaged)(lpVtbl[3]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), inputIndex, inputDescription); #else return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), inputIndex, inputDescription); #endif } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(4)] public HResult SetOutputBuffer(BufferPrecision bufferPrecision, ChannelDepth channelDepth) { #if NET6_0_OR_GREATER return ((delegate* unmanaged)(lpVtbl[4]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth); #else return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), bufferPrecision, channelDepth); #endif } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(5)] public void SetCached(Bool32 isCached) { #if NET6_0_OR_GREATER ((delegate* unmanaged)(lpVtbl[5]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), isCached); #else ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), isCached); #endif } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] public void SetInstructionCountHint(uint instructionCount) { #if NET6_0_OR_GREATER ((delegate* unmanaged)(lpVtbl[6]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), instructionCount); #else ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), instructionCount); #endif } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(7)] public HResult SetComputeShaderConstantBuffer(byte* buffer, uint bufferCount) { #if NET6_0_OR_GREATER return ((delegate* unmanaged)(lpVtbl[7]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), buffer, bufferCount); #else return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), buffer, bufferCount); #endif } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] public HResult SetComputeShader(Guid* shaderId) { #if NET6_0_OR_GREATER return ((delegate* unmanaged)(lpVtbl[8]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), shaderId); #else return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), shaderId); #endif } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] public HResult SetResourceTexture(uint textureIndex, ID2D1ResourceTexture* resourceTexture) { #if NET6_0_OR_GREATER return ((delegate* unmanaged)(lpVtbl[9]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), textureIndex, resourceTexture); #else return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1ComputeInfo*)Unsafe.AsPointer(ref this), textureIndex, resourceTexture); #endif } public interface Interface : ID2D1RenderInfo.Interface { [VtblIndex(7)] HResult SetComputeShaderConstantBuffer(byte* buffer, uint bufferCount); [VtblIndex(8)] HResult SetComputeShader(Guid* shaderId); [VtblIndex(9)] HResult SetResourceTexture(uint textureIndex, ID2D1ResourceTexture* resourceTexture); } }