diff --git a/README.md b/README.md index dd258af..f9d236e 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,32 @@ 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) +* Mengxuan Huang + * [LinkedIn](https://www.linkedin.com/in/mengxuan-huang-52881624a). +* Tested on: Windows 11, i9-13980HX @ 2.22GHz 64.0 GB, RTX4090-Laptop 16384MB -### (TODO: Your README) +## Part 3.1: CUDA +8 -> Dodger Blue #0080ff rgb( 0, 128, 255) -Include screenshots, analysis, etc. (Remember, this is public, so don't put -anything here that you don't want to share with the world.) +9 -> Blue #0000ff rgb( 0, 0, 255) +![](images/Part3_1.png) + +## Part 3.1.2: Analyze + +![](images/Part3_1_2.png) + +## Part 3.1.3: Nsight Debugging +**Random Number: 1111** + +BlockId(19, 0, 0) ThreadId:(7, 1, 0) + +![](images/Part3_1_3.png) + +## Part 3.2: WebGL +**Support WebGL** +![](images/Part3_2.png) + +## Part 3.3: DXR +**GPU has full hardware support for DXR** +![](images/Part3_3.png) diff --git a/cuda-getting-started/src/main.cpp b/cuda-getting-started/src/main.cpp index 886fd4c..c25fcdf 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 = "MENGXUAN HUANG"; if (init(argc, argv)) { mainLoop(); diff --git a/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl b/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl index d817ca4..b383dbf 100644 --- a/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl +++ b/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl @@ -69,7 +69,7 @@ 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(0.0f, 0.5f, 1.0f);// float3(1 - attr.barycentrics.x - attr.barycentrics.y, attr.barycentrics.x, attr.barycentrics.y); payload.color = float4(barycentrics, 1); } diff --git a/images/Part3_1.png b/images/Part3_1.png new file mode 100644 index 0000000..0bed3f0 Binary files /dev/null and b/images/Part3_1.png differ diff --git a/images/Part3_1_2.png b/images/Part3_1_2.png new file mode 100644 index 0000000..6bddada Binary files /dev/null and b/images/Part3_1_2.png differ diff --git a/images/Part3_1_3.png b/images/Part3_1_3.png new file mode 100644 index 0000000..92c5fa4 Binary files /dev/null and b/images/Part3_1_3.png differ diff --git a/images/Part3_2.png b/images/Part3_2.png new file mode 100644 index 0000000..dc87b97 Binary files /dev/null and b/images/Part3_2.png differ diff --git a/images/Part3_3.png b/images/Part3_3.png new file mode 100644 index 0000000..8349d6e Binary files /dev/null and b/images/Part3_3.png differ