File tree Expand file tree Collapse file tree 4 files changed +100
-792
lines changed
examples/metal/default_xcode_game
framework-crates/objc2-metal Expand file tree Collapse file tree 4 files changed +100
-792
lines changed Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ fn load_pipeline_state(
167167}
168168
169169fn load_vertex_descriptor ( ) -> Retained < MTLVertexDescriptor > {
170- let vertex_descriptor = unsafe { MTLVertexDescriptor :: new ( ) } ;
170+ let vertex_descriptor = MTLVertexDescriptor :: new ( ) ;
171171
172172 unsafe {
173173 let attributes = vertex_descriptor. attributes ( ) ;
@@ -201,7 +201,7 @@ fn load_vertex_descriptor() -> Retained<MTLVertexDescriptor> {
201201fn load_depth_state (
202202 device : & ProtocolObject < dyn MTLDevice > ,
203203) -> Retained < ProtocolObject < dyn MTLDepthStencilState > > {
204- let depth_state_desc = unsafe { MTLDepthStencilDescriptor :: new ( ) } ;
204+ let depth_state_desc = MTLDepthStencilDescriptor :: new ( ) ;
205205 depth_state_desc. setDepthCompareFunction ( MTLCompareFunction :: Less ) ;
206206 depth_state_desc. setDepthWriteEnabled ( true ) ;
207207 device
Original file line number Diff line number Diff line change 5353//!
5454//! It is yet unclear whether Metal APIs are bounds-checked on the CPU side or
5555//! not, so APIs that take offsets / lengths are often unsafe.
56+ //!
57+ //! ## Threading
58+ //!
59+ //! TODO.
60+ //!
61+ //! ## Resource allocation and memory management
62+ //!
63+ //! TODO.
64+ //!
65+ //! ## Type safety
66+ //!
67+ //! TODO.
5668#![ recursion_limit = "256" ]
5769#![ allow( non_snake_case) ]
5870#![ no_std]
You can’t perform that action at this time.
0 commit comments