Skip to content

Instantly share code, notes, and snippets.

@nrbnlulu
nrbnlulu / keymap.json
Created April 2, 2025 12:44
zed keybindings
// Zed keymap
//
// For information on binding keys, see the Zed
// documentation: https://zed.dev/docs/key-bindings
//
// To see the default key bindings run `zed: open default keymap`
// from the command palette.
[
{
"context": "Workspace",
@nrbnlulu
nrbnlulu / d3d_ANGEL_texture_investigation.md
Last active April 6, 2025 12:01
ANGLE DirectX Interop (textures for flutter)

ANGLE's Mechanism for DirectX Interoperability

Introduction: Bridging Graphics APIs with ANGLE

The Almost Native Graphics Layer Engine (ANGLE) stands as a pivotal open-source project developed by Google, designed to facilitate cross-platform graphics rendering.¹ At its core, ANGLE functions as a graphics engine abstraction layer, adept at translating OpenGL ES 2 and 3 API calls into corresponding calls for a variety of native graphics APIs, including DirectX 9, DirectX 11, OpenGL, Vulkan, and Metal.¹ This translation capability is particularly significant for bringing high-performance OpenGL compatibility to the Microsoft Windows operating system and to web browsers like Chromium. By converting OpenGL calls into Direct3D, ANGLE leverages the often superior driver support available for DirectX on Windows systems.¹ Its utility is underscored by its integration into major web browsers such as Google Chrome, Mozilla Firefox, Microsoft Edge, and Apple's Safari, as well as game engines like Godot and numero

sealed class Result<T, E> {
const Result();
}
class Ok<T, E> extends Result<T, E> {
const Ok(this.value);
final T value;
}