Skip to content

Commit

Permalink
publish to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
mxgrey committed Dec 27, 2023
0 parents commit e6d9e26
Show file tree
Hide file tree
Showing 8 changed files with 2,345 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<html>
<head>
<meta http-equiv="refresh" content="1; url=./web">
</head>
<body>
Redirecting to the 'web' subdirectory...
</body>
</html>
29 changes: 29 additions & 0 deletions web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<html>
<head>
<meta charset="utf-8">
<title>The RMF Site Editor</title>
<style>
body {
background-color: #101010;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
}
canvas {
background-color: #401010;
}
</style>
</head>
<body>
<canvas id="rmf_site_editor_canvas">
<script type="module">
import init from "./librmf_site_editor.js";
document.addEventListener('contextmenu', function(evt) { evt.preventDefault(); });
init("./librmf_site_editor_bg_optimized.wasm").then(function (wasm) {
wasm.run_js();
});
</script>
</canvas>
</body>
</html>
93 changes: 93 additions & 0 deletions web/librmf_site_editor.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/* tslint:disable */
/* eslint-disable */
/**
*/
export function run_js(): void;

export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;

export interface InitOutput {
readonly memory: WebAssembly.Memory;
readonly run_js: () => void;
readonly wgpu_compute_pass_set_pipeline: (a: number, b: number) => void;
readonly wgpu_compute_pass_set_bind_group: (a: number, b: number, c: number, d: number, e: number) => void;
readonly wgpu_compute_pass_set_push_constant: (a: number, b: number, c: number, d: number) => void;
readonly wgpu_compute_pass_insert_debug_marker: (a: number, b: number, c: number) => void;
readonly wgpu_compute_pass_push_debug_group: (a: number, b: number, c: number) => void;
readonly wgpu_compute_pass_pop_debug_group: (a: number) => void;
readonly wgpu_compute_pass_write_timestamp: (a: number, b: number, c: number) => void;
readonly wgpu_compute_pass_begin_pipeline_statistics_query: (a: number, b: number, c: number) => void;
readonly wgpu_compute_pass_end_pipeline_statistics_query: (a: number) => void;
readonly wgpu_compute_pass_dispatch_workgroups: (a: number, b: number, c: number, d: number) => void;
readonly wgpu_compute_pass_dispatch_workgroups_indirect: (a: number, b: number, c: number) => void;
readonly wgpu_render_bundle_set_pipeline: (a: number, b: number) => void;
readonly wgpu_render_bundle_set_bind_group: (a: number, b: number, c: number, d: number, e: number) => void;
readonly wgpu_render_bundle_set_vertex_buffer: (a: number, b: number, c: number, d: number, e: number) => void;
readonly wgpu_render_bundle_set_push_constants: (a: number, b: number, c: number, d: number, e: number) => void;
readonly wgpu_render_bundle_draw: (a: number, b: number, c: number, d: number, e: number) => void;
readonly wgpu_render_bundle_draw_indexed: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
readonly wgpu_render_bundle_draw_indirect: (a: number, b: number, c: number) => void;
readonly wgpu_render_bundle_draw_indexed_indirect: (a: number, b: number, c: number) => void;
readonly wgpu_render_pass_set_pipeline: (a: number, b: number) => void;
readonly wgpu_render_pass_set_bind_group: (a: number, b: number, c: number, d: number, e: number) => void;
readonly wgpu_render_pass_set_vertex_buffer: (a: number, b: number, c: number, d: number, e: number) => void;
readonly wgpu_render_pass_set_push_constants: (a: number, b: number, c: number, d: number, e: number) => void;
readonly wgpu_render_pass_draw: (a: number, b: number, c: number, d: number, e: number) => void;
readonly wgpu_render_pass_draw_indexed: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
readonly wgpu_render_pass_draw_indirect: (a: number, b: number, c: number) => void;
readonly wgpu_render_pass_draw_indexed_indirect: (a: number, b: number, c: number) => void;
readonly wgpu_render_pass_multi_draw_indirect: (a: number, b: number, c: number, d: number) => void;
readonly wgpu_render_pass_multi_draw_indexed_indirect: (a: number, b: number, c: number, d: number) => void;
readonly wgpu_render_pass_multi_draw_indirect_count: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
readonly wgpu_render_pass_multi_draw_indexed_indirect_count: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
readonly wgpu_render_pass_set_blend_constant: (a: number, b: number) => void;
readonly wgpu_render_pass_set_scissor_rect: (a: number, b: number, c: number, d: number, e: number) => void;
readonly wgpu_render_pass_set_viewport: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
readonly wgpu_render_pass_set_stencil_reference: (a: number, b: number) => void;
readonly wgpu_render_pass_insert_debug_marker: (a: number, b: number, c: number) => void;
readonly wgpu_render_pass_push_debug_group: (a: number, b: number, c: number) => void;
readonly wgpu_render_pass_pop_debug_group: (a: number) => void;
readonly wgpu_render_pass_write_timestamp: (a: number, b: number, c: number) => void;
readonly wgpu_render_pass_begin_pipeline_statistics_query: (a: number, b: number, c: number) => void;
readonly wgpu_render_pass_end_pipeline_statistics_query: (a: number) => void;
readonly wgpu_render_pass_execute_bundles: (a: number, b: number, c: number) => void;
readonly wgpu_render_bundle_set_index_buffer: (a: number, b: number, c: number, d: number, e: number) => void;
readonly wgpu_render_bundle_pop_debug_group: (a: number) => void;
readonly wgpu_render_bundle_insert_debug_marker: (a: number, b: number) => void;
readonly wgpu_render_bundle_push_debug_group: (a: number, b: number) => void;
readonly wgpu_render_pass_set_index_buffer: (a: number, b: number, c: number, d: number, e: number) => void;
readonly __wbindgen_malloc: (a: number) => number;
readonly __wbindgen_realloc: (a: number, b: number, c: number) => number;
readonly __wbindgen_export_2: WebAssembly.Table;
readonly wasm_bindgen__convert__closures__invoke0_mut__h2d962d839f29a469: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h362ec6a2292abe73: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h01173812b52f856c: (a: number, b: number, c: number) => void;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h97c824114522efaf: (a: number, b: number, c: number) => void;
readonly wasm_bindgen__convert__closures__invoke0_mut__ha9c20577efbc98e7: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures__invoke0_mut__h5deadc33e528a6b5: (a: number, b: number) => void;
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4583e832ff32b8bb: (a: number, b: number, c: number) => void;
readonly __wbindgen_exn_store: (a: number) => void;
readonly __wbindgen_free: (a: number, b: number) => void;
readonly wasm_bindgen__convert__closures__invoke2_mut__h6c134c0d9a506d90: (a: number, b: number, c: number, d: number) => void;
}

export type SyncInitInput = BufferSource | WebAssembly.Module;
/**
* Instantiates the given `module`, which can either be bytes or
* a precompiled `WebAssembly.Module`.
*
* @param {SyncInitInput} module
*
* @returns {InitOutput}
*/
export function initSync(module: SyncInitInput): InitOutput;

/**
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
* for everything else, calls `WebAssembly.instantiate` directly.
*
* @param {InitInput | Promise<InitInput>} module_or_path
*
* @returns {Promise<InitOutput>}
*/
export default function init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
Loading

0 comments on commit e6d9e26

Please sign in to comment.