Skip to content

Instantly share code, notes, and snippets.

View mooman219's full-sized avatar
๐Ÿ„

mooo mooman219

๐Ÿ„
  • Seattle, Washington
View GitHub Profile
use std::cell::Cell;
use std::cell::UnsafeCell;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;
const CACHELINE_LEN: usize = 64; // Usually 64 words
const CACHELINE: usize = CACHELINE_LEN / std::mem::size_of::<usize>();
#[repr(C)]
pub struct Buffer<T> {
//
// Engine
//
// If the input thread is running
engine_input_alive() -> bool
// If the render thread is running
engine_render_alive() -> bool
/**
* Raindrop fragment shader, being used by PIXI.js in the EffectCanvas object
* {{uniforms: {time: {type: string, value: number}, iResolution: {type: string, value: [*]}}, fragment: string}}
*/
const shaderData = {
uniforms: {
iResolution: {
type: 'v2',
value: [
window.innerWidth,
~/Desktop/gfx/examples (master) $ cargo run --release --bin quad --features gl
Downloading spirv_cross v0.10.1
Downloading gfx_gl v0.5.0
Downloading glutin v0.18.0
Downloading khronos_api v2.2.0
Compiling khronos_api v2.2.0
Compiling cfg-if v0.1.5
Compiling winapi v0.3.5
Compiling bitflags v1.0.4
Compiling spirv_cross v0.10.1
export class DiagnosticsManager {
...
public async refreshDiagnostics() {
vscode.window.setStatusBarMessage('Running cargo check...');
const output = await util.spawn('cargo', ['check', '--all-targets', '--message-format=json'], {
cwd: this.root_path
});
~/Dropbox/Projects/Rust/glplay (master) $ cargo check --message-format=json{"features":[],"filenames":["C:\\Users\\Mooma\\Dropbox\\Projects\\Rust\\glplay\\target\\debug\\deps\\libcfg_if-1833bd415532cf68.rlib"],"fresh":true,"package_id":"cfg-if 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_types":["lib"],"kind":["lib"],"name":"cfg-if","src_path":"C:\\Users\\Mooma\\.cargo\\registry\\src\\github.com-1ecc6299db9ec823\\cfg-if-0.1.2\\src\\lib.rs"}}{"features":["default","example_generated"],"filenames":["C:\\Users\\Mooma\\Dropbox\\Projects\\Rust\\glplay\\target\\debug\\deps\\libbitflags-6c6dd4872375fa8b.rlib"],"fresh":true,"package_id":"bitflags 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)","profile":{"debug_assertions":true,"debuginfo":2,"opt_level":"0","overflow_checks":true,"test":false},"reason":"compiler-artifact","target":{"crate_
DEBUG 2018-05-16T23:11:37Z: rls::server: Language Server starting up. Version: 0.127.0-nightly (d2ade31 2018-05-08)
[Info - 7:11:38 PM] Connection to server got closed. Server will restart.
DEBUG 2018-05-16T23:11:39Z: rls::server: Language Server starting up. Version: 0.127.0-nightly (d2ade31 2018-05-08)
[Info - 7:11:39 PM] Connection to server got closed. Server will restart.
DEBUG 2018-05-16T23:11:39Z: rls::server: Language Server starting up. Version: 0.127.0-nightly (d2ade31 2018-05-08)
[Info - 7:11:40 PM] Connection to server got closed. Server will restart.
DEBUG 2018-05-16T23:11:40Z: rls::server: Language Server starting up. Version: 0.127.0-nightly (d2ade31 2018-05-08)
[Info - 7:11:41 PM] Connection to server got closed. Server will restart.
DEBUG 2018-05-16T23:11:41Z: rls::server: Language Server starting up. Version: 0.127.0-nightly (d2ade31 2018-05-08)
[Error - 7:11:42 PM] Connection to server got closed. Server will not be restarted.
[Info - 6:59:36 PM] Connection to server got closed. Server will restart.
[Info - 6:59:37 PM] Connection to server got closed. Server will restart.
[Info - 6:59:38 PM] Connection to server got closed. Server will restart.
[Info - 6:59:39 PM] Connection to server got closed. Server will restart.
[Error - 6:59:39 PM] Connection to server got closed. Server will not be restarted.
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>csci462</groupId>
<artifactId>project2</artifactId>
<version>0.1</version>
<packaging>jar</packaging>
<properties>
use std::cell::Cell;
use std::mem;
use std::sync::Arc;
use std::sync::atomic::*;
// ////////////////////////////////////////////////////////
// Internal
// ////////////////////////////////////////////////////////
const BUFFER_SIZE: usize = 16;