-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for Multisampled Anti-Aliasing #213
Changes from all commits
e2e0881
e0028d7
34d7be6
ecf5d19
3a7b351
f9c281e
58b57d7
c93df83
4795021
9d652a1
e7d7148
334c127
a63bc0d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,9 @@ | |
/blade-asset/cooked | ||
/_failure.wgsl | ||
|
||
libEGL.dylib | ||
libGLESv2.dylib | ||
|
||
.DS_Store | ||
/.vs | ||
/.vscode |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -357,7 +357,8 @@ impl super::Context { | |
let window_ptr = unsafe { | ||
use objc::{msg_send, runtime::Object, sel, sel_impl}; | ||
// ns_view always have a layer and don't need to verify that it exists. | ||
let layer: *mut Object = msg_send![handle.ns_view.as_ptr(), layer]; | ||
let layer: *mut Object = | ||
msg_send![handle.ns_view.as_ptr() as *mut Object, layer]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. curious, does this cast do anything? I think the type is essentially erased at that point, anyway There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It didn't compile for me, msg_send![] required the thing to implement the "Message" trait and it wasn't implemented by a raw pointer. The cast fixed the compilation though ofc no guarantees This made it compile, though I could still not get it to run :/ |
||
layer as *mut ffi::c_void | ||
}; | ||
window_ptr | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's now the same dependency between wasm and normal, can we move it into a common block of dev dependencies?