{"action":"created","issue":{"url":"https://api.github.com/repos/gfx-rs/gfx_examples/issues/18","labels_url":"https://api.github.com/repos/gfx-rs/gfx_examples/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/gfx-rs/gfx_examples/issues/18/comments","events_url":"https://api.github.com/repos/gfx-rs/gfx_examples/issues/18/events","html_url":"https://github.com/gfx-rs/gfx_examples/issues/18","id":69393134,"number":18,"title":"All crash in OS X","user":{"login":"tioover","id":930060,"avatar_url":"https://avatars.githubusercontent.com/u/930060?v=3","gravatar_id":"","url":"https://api.github.com/users/tioover","html_url":"https://github.com/tioover","followers_url":"https://api.github.com/users/tioover/followers","following_url":"https://api.github.com/users/tioover/following{/other_user}","gists_url":"https://api.github.com/users/tioover/gists{/gist_id}","starred_url":"https://api.github.com/users/tioover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tioover/subscriptions","organizations_url":"https://api.github.com/users/tioover/orgs","repos_url":"https://api.github.com/users/tioover/repos","events_url":"https://api.github.com/users/tioover/events{/privacy}","received_events_url":"https://api.github.com/users/tioover/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-19T06:46:22Z","updated_at":"2015-04-22T07:22:09Z","closed_at":null,"body":"cargo run --bin triangle                        \r\n     Running `target/debug/triangle`\r\nthread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: Vertex(ShaderCompilationFailed)', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/result.rs:768\r\nAn unknown error occurred\r\n\r\n\r\ncargo run --bin deferred                            \r\n   Compiling gfx-examples v0.0.5 (file:///Users/tioover/Project/gfx_examples)\r\nsrc/deferred/main.rs:130:1: 130:16 warning: unused import, #[warn(unused_imports)] on by default\r\nsrc/deferred/main.rs:130 #[shader_param]\r\n                         ^~~~~~~~~~~~~~~\r\nsrc/deferred/main.rs:130:1: 130:16 note: in expansion of #[shader_param]\r\nsrc/deferred/main.rs:130:1: 130:16 note: expansion site\r\n     Running `target/debug/deferred`\r\nthread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: Fragment(ShaderCompilationFailed)', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/result.rs:768\r\nAn unknown error occurred\r\n\r\n\r\ncargo run --bin terrain\r\n   Compiling gfx-examples v0.0.5 (file:///Users/tioover/Project/gfx_examples)\r\n     Running `target/debug/terrain`\r\nthread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: Vertex(ShaderCompilationFailed)', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/result.rs:768\r\nAn unknown error occurred\r\n\r\n\r\nOS X 10.10.3\r\nrustc 1.0.0-nightly (6790b0e51 2015-04-11) (built 2015-04-11)\r\n"},"comment":{"url":"https://api.github.com/repos/gfx-rs/gfx_examples/issues/comments/95057847","html_url":"https://github.com/gfx-rs/gfx_examples/issues/18#issuecomment-95057847","issue_url":"https://api.github.com/repos/gfx-rs/gfx_examples/issues/18","id":95057847,"user":{"login":"tioover","id":930060,"avatar_url":"https://avatars.githubusercontent.com/u/930060?v=3","gravatar_id":"","url":"https://api.github.com/users/tioover","html_url":"https://github.com/tioover","followers_url":"https://api.github.com/users/tioover/followers","following_url":"https://api.github.com/users/tioover/following{/other_user}","gists_url":"https://api.github.com/users/tioover/gists{/gist_id}","starred_url":"https://api.github.com/users/tioover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tioover/subscriptions","organizations_url":"https://api.github.com/users/tioover/orgs","repos_url":"https://api.github.com/users/tioover/repos","events_url":"https://api.github.com/users/tioover/events{/privacy}","received_events_url":"https://api.github.com/users/tioover/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T07:22:09Z","updated_at":"2015-04-22T07:22:09Z","body":"terrain success running with:\r\n\r\n    static VERTEX_SRC: &'static [u8] = b\"\r\n        #version 330 core\r\n\r\n        layout(location = 0) in vec3 a_Pos;\r\n        layout(location = 1) in vec3 a_Color;\r\n        out vec3 v_Color;\r\n\r\n        uniform mat4 u_Model;\r\n        uniform mat4 u_View;\r\n        uniform mat4 u_Proj;\r\n\r\n        void main() {\r\n            v_Color = a_Color;\r\n            gl_Position = u_Proj * u_View * u_Model * vec4(a_Pos, 1.0);\r\n        }\r\n    \";\r\n\r\n    static FRAGMENT_SRC: &'static [u8] = b\"\r\n        #version 330 core\r\n\r\n        in vec3 v_Color;\r\n        out vec4 color;\r\n\r\n        void main() {\r\n            color = vec4(v_Color, 1.0);\r\n        }\r\n    \";\r\nJust....\r\n\r\n![screenshot](http://ww3.sinaimg.cn/bmiddle/62c1e01egw1eredgdqykfj212w0tkmz9.jpg)"}}