diff --git a/README.md b/README.md index dd258af..ee296e7 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,28 @@ Project 0 Getting Started **University of Pennsylvania, CIS 565: GPU Programming and Architecture, Project 0** -* (TODO) YOUR NAME HERE - * (TODO) [LinkedIn](), [personal website](), [twitter](), etc. -* Tested on: (TODO) Windows 22, i7-2222 @ 2.22GHz 22GB, GTX 222 222MB (Moore 2222 Lab) +* Zhenzhong Tang + * [LinkedIn](https://www.linkedin.com/in/zhenzhong-anthony-tang-82334a210), [Instagram](https://instagram.com/zhenzhong_anthony_tang/), [personal website](https://toytag.net/), etc. +* Tested on: Windows 11 Pro 22H2, AMD EPYC 7V12 64-Core Processor (4 vCPU cores) @ 2.44GHz 28GiB, Tesla T4 16GiB (Azure) -### (TODO: Your README) + +## Part 3.1: CUDA + +### Part 3.1.1: Modify the CUDA Project and Take a Screenshot +![](images/Screenshot%202023-08-24%20075555.png) + +### Part 3.1.2: Analyze +![](images/Screenshot%202023-08-24%20122737.png) + +### Part 3.1.3: Nsight Debugging +![](images/Screenshot%202023-08-24%20125430.png) + +## Part 3.2: WebGL +![](images/InkedScreenshot%202023-08-24%20125749_LI.jpg) + +## Part 3.3: DXR +![](images/Screenshot%202023-08-24%20131359.png) diff --git a/cuda-getting-started/src/main.cpp b/cuda-getting-started/src/main.cpp index 886fd4c..f3062ba 100644 --- a/cuda-getting-started/src/main.cpp +++ b/cuda-getting-started/src/main.cpp @@ -11,7 +11,7 @@ */ int main(int argc, char* argv[]) { // TODO: Change this line to use your name! - m_yourName = "TODO: YOUR NAME HERE"; + m_yourName = "Zhenzhong Tang"; if (init(argc, argv)) { mainLoop(); diff --git a/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl b/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl index d817ca4..99f3ad9 100644 --- a/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl +++ b/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl @@ -69,7 +69,8 @@ void MyRaygenShader() [shader("closesthit")] void MyClosestHitShader(inout RayPayload payload, in MyAttributes attr) { - float3 barycentrics = float3(1 - attr.barycentrics.x - attr.barycentrics.y, attr.barycentrics.x, attr.barycentrics.y); + // float3 barycentrics = float3(1 - attr.barycentrics.x - attr.barycentrics.y, attr.barycentrics.x, attr.barycentrics.y); + float3 barycentrics = float3(0.2, 0.8, 0.5); payload.color = float4(barycentrics, 1); } diff --git a/images/InkedScreenshot 2023-08-24 125749_LI.jpg b/images/InkedScreenshot 2023-08-24 125749_LI.jpg new file mode 100644 index 0000000..24311e6 Binary files /dev/null and b/images/InkedScreenshot 2023-08-24 125749_LI.jpg differ diff --git a/images/Screenshot 2023-08-24 075555.png b/images/Screenshot 2023-08-24 075555.png new file mode 100644 index 0000000..3682947 Binary files /dev/null and b/images/Screenshot 2023-08-24 075555.png differ diff --git a/images/Screenshot 2023-08-24 122737.png b/images/Screenshot 2023-08-24 122737.png new file mode 100644 index 0000000..5f4ce32 Binary files /dev/null and b/images/Screenshot 2023-08-24 122737.png differ diff --git a/images/Screenshot 2023-08-24 125430.png b/images/Screenshot 2023-08-24 125430.png new file mode 100644 index 0000000..378b9bc Binary files /dev/null and b/images/Screenshot 2023-08-24 125430.png differ diff --git a/images/Screenshot 2023-08-24 131359.png b/images/Screenshot 2023-08-24 131359.png new file mode 100644 index 0000000..fff0775 Binary files /dev/null and b/images/Screenshot 2023-08-24 131359.png differ