Skip to content

Commit

Permalink
style(three-webgpu): run prettier formatting on the code
Browse files Browse the repository at this point in the history
Signed-off-by: Bill ZHANG <[email protected]>
  • Loading branch information
Lutra-Fs committed Sep 12, 2023
1 parent 31a1fb8 commit a0d901e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/components/Simulation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,11 @@ function DiffusionPlane(
props: ThreeElements['mesh'] & Renderable,
): React.ReactElement {
// INITIALISATION

// WebGPU capability test
if ( WebGPU.isAvailable() === true ) {
const webgpuRenderer = new WebGPURenderer( { antialias: true } );
console.log('browser supports webgpu rendering')
if (WebGPU.isAvailable() === true) {
const webgpuRenderer = new WebGPURenderer({ antialias: true });
console.log('browser supports webgpu rendering');
console.log('webgpu renderer context', webgpuRenderer);
} else {
console.log('browser does not support webgpu rendering');
Expand Down
2 changes: 1 addition & 1 deletion src/declaration.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ declare module 'three/addons/capabilities/WebGPU.js' {
}
declare module 'three/addons/renderers/webgpu/WebGPURenderer.js' {
export default class WebGPURenderer {
constructor( parameters: object );
constructor(parameters: object);
}
}

0 comments on commit a0d901e

Please sign in to comment.