diff --git a/README.md b/README.md index dd258af..fbe2354 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,23 @@ 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) +* Tong Hu + * [LinkedIn](https://www.linkedin.com/in/tong-hu-5819a122a/). +* Tested on: Windows 11, Ryzen 7 1700X @ 3.4GHz 16GB, GTX 1080 16GB (Personal Computer) -### (TODO: Your README) +### Screenshots -Include screenshots, analysis, etc. (Remember, this is public, so don't put -anything here that you don't want to share with the world.) +![](images/CUDA_getting_started_screenshot.png) +Figure 1. Screenshot of modified CUDA project in Part 3.1.1. +![](images/Nsignt_screenshot.png) +Figure 2. Screenshot of Nsight in Part 3.1.2. + +![](images/warp_info_idx_1024.png) +Figure 3. Screenshot of warp info in Part 3.1.3. + +![](images/webgl_status.png) +Figure 4. Screenshot of webgl status in Part 3.2. + +![](images/DXR_screenshot.png) +Figure 5. Screenshot of DXR test after changing in Part 3.3. \ No newline at end of file diff --git a/cuda-getting-started/src/main.cpp b/cuda-getting-started/src/main.cpp index 886fd4c..c253b9f 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 = "Tong Hu"; if (init(argc, argv)) { mainLoop(); diff --git a/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl b/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl index d817ca4..c661f9f 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/CUDA_getting_started_screenshot.png b/images/CUDA_getting_started_screenshot.png new file mode 100644 index 0000000..30b574f Binary files /dev/null and b/images/CUDA_getting_started_screenshot.png differ diff --git a/images/DXR_screenshot.png b/images/DXR_screenshot.png new file mode 100644 index 0000000..f046477 Binary files /dev/null and b/images/DXR_screenshot.png differ diff --git a/images/Nsignt_screenshot.png b/images/Nsignt_screenshot.png new file mode 100644 index 0000000..da4bb56 Binary files /dev/null and b/images/Nsignt_screenshot.png differ diff --git a/images/warp_info_idx_1024.png b/images/warp_info_idx_1024.png new file mode 100644 index 0000000..b6c41c9 Binary files /dev/null and b/images/warp_info_idx_1024.png differ diff --git a/images/webgl_status.png b/images/webgl_status.png new file mode 100644 index 0000000..0bbe36a Binary files /dev/null and b/images/webgl_status.png differ