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
fkaa@fkaa ~/D/ecs_bench-master> cargo bench | |
Downloading ecs v0.23.1 | |
Downloading parsec v0.3.1 | |
Downloading vec_map v0.4.0 | |
Downloading fnv v1.0.2 | |
Downloading mopa v0.2.2 | |
Downloading threadpool v1.0.0 | |
Downloading pulse v0.5.2 | |
Downloading atom v0.3.4 | |
Compiling fnv v1.0.2 |
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
C:\Users\Tund\.cargo\registry\src\github.com-88ac128001ac3a9a\dxguid-sys-0.0.1\src\lib.rs:5:1: 5:17 error: The attribute `experimental` is currently unknown to the compiler and may have meaning added to it in the future (see issue #29642) | |
C:\Users\Tund\.cargo\registry\src\github.com-88ac128001ac3a9a\dxguid-sys-0.0.1\src\lib.rs:5 #![experimental] | |
^~~~~~~~~~~~~~~~ | |
C:\Users\Tund\.cargo\registry\src\github.com-88ac128001ac3a9a\dxguid-sys-0.0.1\src\lib.rs:5:1: 5:17 help: add #![feature(custom_attribute)] to the crate attributes to enable | |
error: aborting due to previous error | |
Build failed, waiting for other jobs to finish... | |
Could not compile `dxguid-sys`. |
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
fkaa$ RUST_BACKTRACE=1 cargo run --example window | |
Running `target/debug/examples/window` | |
Pixel format of the window: PixelFormat { hardware_accelerated: true, color_bits: 24, alpha_bits: 8, depth_bits: 24, stencil_bits: 8, stereoscopy: false, double_buffer: true, multisampling: None, srgb: true } | |
OpenGL version 4.1 INTEL-10.12.13 | |
retain 2 | |
retain 1 | |
retain 1 | |
2016-03-02 14:48:17.158 window[65539:2611628] -[NSConcreteHashTable windowNumber]: unrecognized selector sent to instance 0x7ff558579840 | |
thread '<main>' panicked at 'called `Option::unwrap()` on a `None` value', ../src/libcore/option.rs:367 | |
stack backtrace: |
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 ffi; | |
use LuaContext; | |
use std::ffi::CString; | |
use std::slice; | |
use std::str; | |
use std::mem; | |
pub trait Read { | |
fn read(cxt: &mut LuaContext, idx: i32) -> Self; |
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
int frameTexture; // shared | |
// main thread | |
// probably need some synchronization between decoding a frame | |
// on the decoder thread and displaying it on the main | |
glBindTexture(GL_TEXTURE_2D, frameTexture); | |
glDrawEverythingForMe(GL_MAGICAL_ENUM, 0xDEADBEEF); | |
// decode thread |
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
class SpriteBatch { | |
SpriteBatch(size) { | |
self.size = size; | |
self.idx = 0; | |
self.buffer = glCreateBuffers(); | |
glBufferData(..., size); | |
} | |
void begin(Shader shader) { | |
if (self.begun) error!("must end first!") |
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
pub struct Instruction { | |
operation: Op, | |
type_id: Id, // presence denoted by non-zero value | |
result_id: Id, // ditto | |
operands: Vec<Word>, | |
literal: Option<String> | |
} |
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
Header { version: 99, magic: 85590203, bound: 23, reserved: 0 } | |
OpSource (3) | |
Failed at `Instruction(Source)` with error code `0` |
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
public class Foo { | |
public int bar; | |
public Foo(int bar) { | |
this.bar = bar; | |
} | |
} |
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
1: 0.83 µs glViewport(0, 0, 854, 480); | |
2: 3.95 µs glBeginQuery(GL_TIME_ELAPSED_EXT, 1); | |
3: 3.52 µs glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 1); | |
4: 0.70 µs glDepthMask(GL_TRUE); | |
5: 18.21 µs glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); | |
6: 0.52 µs glEnable(GL_DEPTH_TEST); | |
7: 0.31 µs glDisable(GL_BLEND); | |
8: 6.31 µs glUseProgram(15); | |
9: 2.04 µs glUniformMatrix4fv(9, 1, 0, {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1}); | |
10: 0.28 µs glUniformMatrix4fv(1, 1, 0, {0.973518, 0, 0, 0, 0, 1.73205, 0, 0, 0, 0, -1.0002, -1, 0, 0, -0.10002, 0}); |