diff --git a/README.md b/README.md index dd258af..e119b50 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,33 @@ 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) +* Xuanyi Zhou + * [LinkedIn](https://www.linkedin.com/in/xuanyi-zhou-661365192/) + * [Github](https://github.com/lukedan) +* Tested on: Windows 10, i7-9750H @ 2.60GHz 32GB, RTX 2060 6GB, personal laptop -### (TODO: Your README) +## CUDA Test -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.png) +## CUDA Trace + +![](images/trace.png) + +## CUDA Debugging + +- Since my graphics card is not supported by the legacy debugger, therer's no 'CUDA Info' window. Here's a screenshot of the 'Warp Info' window instead. + +![](images/warp.png) + +![](images/autos.png) + +## WebGL + +![](images/webgl.png) + +## DXR + +- At first the program kept crashing due to objects being in invalid states. I investigated it for a while and discovered that having the RivaTuner Statistics Server running causes it (you can see it in the 'CUDA Test' screenshot). + +![](images/dxr.png) diff --git a/cuda-getting-started/src/main.cpp b/cuda-getting-started/src/main.cpp index 886fd4c..2956c22 100644 --- a/cuda-getting-started/src/main.cpp +++ b/cuda-getting-started/src/main.cpp @@ -10,8 +10,7 @@ * C main function. */ int main(int argc, char* argv[]) { - // TODO: Change this line to use your name! - m_yourName = "TODO: YOUR NAME HERE"; + m_yourName = "Xuanyi Zhou"; if (init(argc, argv)) { mainLoop(); diff --git a/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl b/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl index d817ca4..f402cf8 100644 --- a/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl +++ b/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl @@ -70,6 +70,8 @@ void MyRaygenShader() void MyClosestHitShader(inout RayPayload payload, in MyAttributes attr) { float3 barycentrics = float3(1 - attr.barycentrics.x - attr.barycentrics.y, attr.barycentrics.x, attr.barycentrics.y); + barycentrics = pow(barycentrics, 30.0f); + barycentrics /= barycentrics.x + barycentrics.y + barycentrics.z; payload.color = float4(barycentrics, 1); } diff --git a/images/autos.png b/images/autos.png new file mode 100644 index 0000000..fb56105 Binary files /dev/null and b/images/autos.png differ diff --git a/images/cuda.png b/images/cuda.png new file mode 100644 index 0000000..9803663 Binary files /dev/null and b/images/cuda.png differ diff --git a/images/dxr.png b/images/dxr.png new file mode 100644 index 0000000..aacf01a Binary files /dev/null and b/images/dxr.png differ diff --git a/images/trace.png b/images/trace.png new file mode 100644 index 0000000..00000b7 Binary files /dev/null and b/images/trace.png differ diff --git a/images/warp.png b/images/warp.png new file mode 100644 index 0000000..11c5ad5 Binary files /dev/null and b/images/warp.png differ diff --git a/images/webgl.png b/images/webgl.png new file mode 100644 index 0000000..4fceb9f Binary files /dev/null and b/images/webgl.png differ