File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -892,7 +892,7 @@ fn main(@location(0) inColor: vec3<f32>) -> @location(0) vec4<f32> {
892
892
(config :: GPUCanvasConfiguration ) = x
893
893
{ device
894
894
, format: GPUTextureFormat .bgra8unorm
895
- , usage: GPUTextureUsage .renderAttachment
895
+ , usage: GPUTextureUsage .renderAttachment
896
896
, alphaMode: opaque
897
897
}
898
898
liftEffect $ configure context config
@@ -1072,7 +1072,10 @@ fn main(@location(0) inColor: vec3<f32>) -> @location(0) vec4<f32> {
1072
1072
avgTn <- timeDeltaAverager (tnx - tn)
1073
1073
avgCf <- frameDeltaAverager (toNumber (cfx - cf))
1074
1074
setTextContent
1075
- (" Delta time: " <> show (toStringWith (precision 2 ) avgTn) <> " , Delta frames: " <> show (toStringWith (precision 2 ) avgCf))
1075
+ ( " Delta time: " <> show (toStringWith (precision 2 ) avgTn)
1076
+ <> " , Delta frames: "
1077
+ <> show (toStringWith (precision 2 ) avgCf)
1078
+ )
1076
1079
(toNode renderStats)
1077
1080
unmap buf
1078
1081
void $ liftST $ STArray .push buf outputBuffers
You can’t perform that action at this time.
0 commit comments