This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>WebGPU · per-pixel nested 4³ 3D-DDA volume</title> | |
| <style> | |
| :root{ | |
| --bg:#0a0c10;--panel:#12151c;--panel2:#161a23;--line:#1e2430;--line2:#2a3242; | |
| --ink:#e9eef6;--mut:#8b95a7;--faint:#5b6473;--acc:#38bdf8;--acc2:#f0a830;--ray:#ff3d71; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /> | |
| <title>Painterly Cube — WebGPU (Phases 0–2)</title> | |
| <link rel="preconnect" href="https://fonts.googleapis.com" /> | |
| <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> | |
| <link href="https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <html lang="en"> | |
| <head> | |
| <title>Value Noise</title> | |
| <script type="text/javascript"> | |
| // Canvas | |
| var canvas = null; | |
| var context2D = null; | |
| var tiledcanvas = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * JSON Schema 2020-12 Negation Implementation | |
| * Computes ¬(schema) for any JSON schema | |
| */ | |
| const TYPE_SPECIFIC_KEYWORDS = { | |
| string: new Set(['minLength', 'maxLength', 'pattern', 'format', 'contentEncoding', 'contentMediaType']), | |
| number: new Set(['minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum', 'multipleOf']), | |
| integer: new Set(['minimum', 'maximum', 'exclusiveMinimum', 'exclusiveMaximum', 'multipleOf']), | |
| boolean: new Set([]), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| class Vector2 | |
| { | |
| constructor(x = 0, y = 0) | |
| { | |
| this.x = x; | |
| this.y = y; | |
| } | |
| Add(v) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type Option<T> = { | |
| label: string; | |
| value: T; | |
| } | |
| type Options<T> = | |
| | Record<string, T> | |
| | Option<T>[] | |
| | (() => Option<T>[]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function SingleWorkerExample(data, param1, param2) { | |
| return new Promise(resolve => { | |
| const blobURL = URL.createObjectURL(new Blob(['(', function() { | |
| onmessage = e => { | |
| const { data, param1, param2 } = e.data; | |
| // Do work with data which is a SharedArrayBuffer | |
| postMessage('done'); | |
| }; | |
| }.toString(), ')()'], { type: 'application/javascript' })); | |
| const worker = new Worker(blobURL); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cbuffer worldMatrix : register(b0) | |
| { | |
| matrix worldmat; | |
| }; | |
| cbuffer viewMatrix : register(b1) | |
| { | |
| matrix viewmat; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include <vector> | |
| #include <cmath> | |
| #include "Vector2.hpp" | |
| namespace IntersectionFunctions | |
| { | |
| struct IntersectionObject |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace FreeListClass | |
| { | |
| public class FreeList<T> | |
| { | |
| private class FreeListItem<T> |
NewerOlder