Revision: 06.08.2023, https://compute.toys/view/398
fn sdCircle(p: vec2f, r: f32) -> f32 {
return length(p) - r;
}| NSUInteger width = 1024; | |
| NSUInteger height = 768; | |
| OSType pixelFormat = kCVPixelFormatType_422YpCbCr8BiPlanarFullRange; | |
| NSUInteger plane0BytesPerPixel = 1; | |
| NSUInteger plane1BytesPerPixel = 1; | |
| NSUInteger plane0BytesPerRow = IOSurfaceAlignProperty(kIOSurfaceBytesPerRow, plane0BytesPerPixel * width); | |
| NSUInteger plane0AllocSize = IOSurfaceAlignProperty(kIOSurfaceAllocSize, plane0BytesPerRow * height); | |
| NSUInteger plane1BytesPerRow = IOSurfaceAlignProperty(kIOSurfaceBytesPerRow, plane1BytesPerPixel * width); | |
| NSUInteger plane1AllocSize = IOSurfaceAlignProperty(kIOSurfaceAllocSize, plane1BytesPerRow * height); |
| import ARKit | |
| import SceneKit | |
| let horizontalPoints = 256 / 2 | |
| let verticalPoints = 192 / 2 | |
| var depthNodes = [SCNNode]() | |
| var parentDebugNodes = SCNNode() | |
| var sceneView: ARSCNView! | |
| // Somewhere during setup |
Revision: 06.08.2023, https://compute.toys/view/398
fn sdCircle(p: vec2f, r: f32) -> f32 {
return length(p) - r;
}| extension URLResponse { | |
| /// Returns casted `HTTPURLResponse` | |
| var http: HTTPURLResponse? { | |
| return self as? HTTPURLResponse | |
| } | |
| } | |
| extension HTTPURLResponse { | |
| /// Returns `true` if `statusCode` is in range 200...299. | |
| /// Otherwise `false`. |
| http://courses.cms.caltech.edu/cs179/ | |
| http://www.amd.com/Documents/GCN_Architecture_whitepaper.pdf | |
| https://community.arm.com/graphics/b/blog | |
| http://cdn.imgtec.com/sdk-documentation/PowerVR+Hardware.Architecture+Overview+for+Developers.pdf | |
| http://cdn.imgtec.com/sdk-documentation/PowerVR+Series5.Architecture+Guide+for+Developers.pdf | |
| https://www.imgtec.com/blog/a-look-at-the-powervr-graphics-architecture-tile-based-rendering/ | |
| https://www.imgtec.com/blog/the-dr-in-tbdr-deferred-rendering-in-rogue/ | |
| http://developer.amd.com/tools-and-sdks/opencl-zone/amd-accelerated-parallel-processing-app-sdk/opencl-optimization-guide/#50401334_pgfId-412605 | |
| https://fgiesen.wordpress.com/2011/07/09/a-trip-through-the-graphics-pipeline-2011-index/ | |
| https://community.arm.com/graphics/b/documents/posts/moving-mobile-graphics#siggraph2015 |
| # This file is NOT licensed under the GPLv3, which is the license for the rest | |
| # of YouCompleteMe. | |
| # | |
| # Here's the license text for this file: | |
| # | |
| # This is free and unencumbered software released into the public domain. | |
| # | |
| # Anyone is free to copy, modify, publish, use, compile, sell, or | |
| # distribute this software, either in source code form or as a compiled | |
| # binary, for any purpose, commercial or non-commercial, and by any |