// Generated API outline. Implementation bodies omitted.
#nullable enable
namespace Xui.GPU.Hardware.D3D11
{
using System.Runtime.InteropServices;
using System;
using Xui.Runtime.Windows;
using static Xui.Runtime.Windows.D3D11;
///
/// Direct3D 11 hardware GPU device implementation.
/// Provides hardware-accelerated shader compilation and rendering on Windows.
///
///
/// This backend uses D3D11 for rendering and D3DCompiler for HLSL compilation.
/// Rendering is done off-screen to a texture that can be read back to CPU memory
/// for display via the software/2D canvas pipeline.
///
public sealed class DirectXGpuDevice : IGpuDevice
{
/// Gets the name of this GPU backend (e.g., "D3D11", "Metal").
public string BackendName { get; }
/// Gets whether this device has been disposed.
public bool IsDisposed { get; }
///
/// Creates a new Direct3D 11 GPU device.
///
/// Thrown if device creation fails.
public unsafe DirectXGpuDevice();
///
/// Compiles a vertex shader from native shader source code.
///
/// The shader source (HLSL for D3D11, MSL for Metal).
/// The name of the entry point function.
/// A compiled vertex shader.
public unsafe IGpuVertexShader CompileVertexShader(string source, string entryPoint);
///
/// Compiles a fragment (pixel) shader from native shader source code.
///
/// The shader source (HLSL for D3D11, MSL for Metal).
/// The name of the entry point function.
/// A compiled fragment shader.
public unsafe IGpuFragmentShader CompileFragmentShader(string source, string entryPoint);
///
/// Creates a render target texture.
///
/// Width in pixels.
/// Height in pixels.
/// A render target that can be used with a command list.
public unsafe IGpuRenderTarget CreateRenderTarget(int width, int height);
///
/// Creates a command list for recording rendering commands.
///
public unsafe IGpuCommandList CreateCommandList();
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public unsafe void Dispose();
}
}