@@ -288,7 +288,6 @@ main = do
288288 translateZResultData :: Float32Array <- freshIdentityMatrix
289289 perspectiveData :: Float32Array <- getPerspectiveMatrix
290290 perspectiveResultData :: Float32Array <- freshIdentityMatrix
291- introspectionData :: Float32Array <- freshIdentityMatrix
292291 -- 📇 Index Buffer Data
293292 indices :: Uint16Array <- fromArray $ hackyIntConv
294293 [
@@ -411,8 +410,6 @@ main = do
411410 (GPUBufferUsage .storage)
412411 perspectiveResultBuffer <- liftEffect $ createBufferF perspectiveResultData
413412 (GPUBufferUsage .storage .|. GPUBufferUsage .copySrc)
414- introspectionBuffer <- liftEffect $ createBufferF introspectionData
415- (GPUBufferUsage .copyDst .|. GPUBufferUsage .mapRead)
416413 -- 🖍️ Shaders
417414 let
418415 resetDesc = x
@@ -1007,10 +1004,6 @@ fn main(@location(0) inColor: vec3<f32>) -> @location(0) vec4<f32> {
10071004 uniformBuffer
10081005 0
10091006 (4 * 16 )
1010- copyBufferToBuffer commandEncoder perspectiveResultBuffer 0
1011- introspectionBuffer
1012- 0
1013- (4 * 16 )
10141007 -- 🖌️ Encode drawing commands
10151008 let
10161009 (renderPassDesc :: GPURenderPassDescriptor ) = x
@@ -1050,10 +1043,6 @@ fn main(@location(0) inColor: vec3<f32>) -> @location(0) vec4<f32> {
10501043 -- 🙌 finish commandEncoder
10511044 toSubmit <- finish commandEncoder
10521045 submit queue [ toSubmit ]
1053- -- launchAff_ do
1054- -- toAffE $ convertPromise <$> mapAsync introspectionBuffer GPUMapMode.read
1055- -- arr <- liftEffect (getMappedRange introspectionBuffer >>= (whole :: _ -> Effect (Float32Array)) >>= toArray)
1056- -- liftEffect $ logShow arr
10571046 let
10581047 render = unit # fix \f _ -> do
10591048 -- ⏭ Acquire next image from context
0 commit comments