Skip to content

Commit

Permalink
Move Part 1 to its own directory
Browse files Browse the repository at this point in the history
  • Loading branch information
terier committed Apr 18, 2023
1 parent dac9694 commit 5f37b72
Show file tree
Hide file tree
Showing 29 changed files with 30 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Basic setup</title>

<link rel="stylesheet" type="text/css" href="../../style.css">

<script type="module" src="main.js"></script>
</head>
<body>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Shaders</title>

<link rel="stylesheet" type="text/css" href="../../style.css">

<script type="module" src="main.js"></script>
</head>
<body>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Interpolation</title>

<link rel="stylesheet" type="text/css" href="../../style.css">

<script type="module" src="main.js"></script>
</head>
<body>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Separate attributes</title>

<link rel="stylesheet" type="text/css" href="../../style.css">

<script type="module" src="main.js"></script>
</head>
<body>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Interleaved attributes</title>

<link rel="stylesheet" type="text/css" href="../../style.css">

<script type="module" src="main.js"></script>
</head>
<body>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Indexed geometry</title>

<link rel="stylesheet" type="text/css" href="../../style.css">

<script type="module" src="main.js"></script>
</head>
<body>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Uniforms</title>

<link rel="stylesheet" type="text/css" href="../../style.css">

<script src="../../lib/dat.gui.min.js"></script>

<script src="../../../lib/dat.gui.min.js"></script>
<script type="module" src="main.js"></script>
</head>
<body>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Uniforms</title>

<link rel="stylesheet" type="text/css" href="../../style.css">

<script src="../../lib/dat.gui.min.js"></script>

<script src="../../../lib/dat.gui.min.js"></script>
<script type="module" src="main.js"></script>
</head>
<body>
Expand Down
File renamed without changes.
File renamed without changes.
23 changes: 23 additions & 0 deletions Part 1/Reference Implementation/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="../../style.css">
<title>Part 1</title>
</head>
<body>
<div>
<h1>Part 1: Reference Implementation</h1>
<ul>
<li><a href="Task%201.1/">Task 1.1 - Set up the environment, initialize WebGPU, and clear the canvas</a></li>
<li><a href="Task%201.2/">Task 1.2 - Draw a triangle with hardcoded data</a></li>
<li><a href="Task%201.3/">Task 1.3 - Use interpolation to color the triangle</a></li>
<li><a href="Task%201.4/">Task 1.4 - Move vertex attributes from the shader to buffers</a></li>
<li><a href="Task%201.5/">Task 1.5 - Optimize memory access with interleaved attributes</a></li>
<li><a href="Task%201.6/">Task 1.6 - Optimize memory usage with an index buffer</a></li>
<li><a href="Task%201.7/">Task 1.7 - Translate the triangle with uniform variables</a></li>
<li><a href="Task%201.8/">Task 1.8 - Apply a texture to the triangle</a></li>
</ul>
</div>
</body>
</html>
1 change: 1 addition & 0 deletions Part 2/Reference Implementation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="../../style.css">
<title>Part 2</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions Part 3/Reference Implementation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="../../style.css">
<title>Part 3</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions Part 4/Reference Implementation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="../../style.css">
<title>Part 4</title>
</head>
<body>
Expand Down
2 changes: 2 additions & 0 deletions reference-implementations.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<title>Reference Implementations</title>
</head>
<body>
<div>
<h1>Reference Implementations</h1>
<ul>
<li><a href="Part%201/Reference%20Implementation/">Part 1</a></li>
<li><a href="Part%202/Reference%20Implementation/">Part 2</a></li>
<li><a href="Part%203/Reference%20Implementation/">Part 3</a></li>
<li><a href="Part%204/Reference%20Implementation/">Part 4</a></li>
Expand Down

0 comments on commit 5f37b72

Please sign in to comment.