This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Disney BRDF Parameter Structure | |
| struct DisneyBRDFParams | |
| { | |
| float3 baseColor; // Base color (albedo) | |
| float metallic; // Metallic parameter [0, 1] | |
| float subsurface; // Subsurface scattering amount [0, 1] | |
| float specular; // Specular amount [0, 1] | |
| float roughness; // Surface roughness [0, 1] | |
| float specularTint; // Specular tint toward base color [0, 1] | |
| float anisotropic; // Anisotropy amount [0, 1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| namespace Razix { | |
| // Forward declarations | |
| template<typename T, size_t N> | |
| class FixedArray; | |
| template<typename T> | |
| class DynamicArray; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Set-PSReadlineOption -HistorySavePath "$env:USERPROFILE\Documents\PowerShell_history.txt" | |
| Set-PSReadlineOption -MaximumHistoryCount 10000 | |
| Set-PSReadlineOption -HistoryNoDuplicates | |
| Set-PSReadLineOption -PredictionSource History | |
| oh-my-posh init pwsh --config https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/themes/slim.omp.json | Invoke-Expression |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Why I love C and Jumptables: | |
| #define rzRHI_DestroyDescriptorHeap g_RHI.DestroyDescriptorHeap | |
| #define rzRHI_CreateDescriptorTable g_RHI.CreateDescriptorTable | |
| #define rzRHI_DestroyDescriptorTable g_RHI.DestroyDescriptorTable | |
| #if !RZ_PROFILER_ENABLED | |
| #if defined(RAZIX_RHI_USE_RESOURCE_MANAGER_HANDLES) && defined(__cplusplus) | |
| #define rzRHI_BeginCmdBuf(cb) g_RHI.BeginCmdBuf(RZResourceManager::Get().getCommandBufferResource(cb)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local love = require("love") | |
| -- Test case for setDepthClamp function | |
| local TestDepthClamp = {} | |
| function love.conf(t) | |
| t.renderers = {"opengl"} | |
| end | |
| function TestDepthClamp:load() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <vulkan/vulkan.h> | |
| #include <iostream> | |
| #include <vector> | |
| #include <stdexcept> | |
| #include <chrono> | |
| #include <cassert> | |
| // Macro for VkQuery timing | |
| #define VK_TIME_START(device, cmdBuffer, queryPool, queryIndex) \ | |
| vkCmdResetQueryPool(cmdBuffer, queryPool, queryIndex, 1); \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .section __DATA,__data | |
| phi_const: | |
| .double 1.618033988749895 | |
| root5_const: | |
| .double 2.23606797749979 | |
| msg: | |
| .asciz "Hello, ARM64 macOS!\n" | |
| .section __TEXT,__text | |
| .global _hello |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Inspired By: https://www.youtube.com/watch?v=E6TS1c8KWFA | |
| CPU‐Bound Performance Issues | |
| \ | |
| \ **Draw Call Count** | |
| \ \ | |
| \ \ Too many state changes per frame | |
| \ \ Small batches (lots of tiny draw calls) | |
| \ | |
| \ **Synchronization** | |
| \ \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # MangoHud.conf | |
| output_folder=/home/ | |
| output_file=true | |
| output_format=csv | |
| output_pipe=false | |
| # Logging control | |
| log_duration=120 # Log for 2 minutes (120 seconds) | |
| log_start=F4 # Trigger logging with F4 | |
| log_performance=true # Enable logging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @startuml | |
| title mmap() System Call Flow | |
| actor UserApp | |
| participant KernelVFS as "Kernel VFS" | |
| participant KernelMM as "Kernel Memory Manager" | |
| participant Driver as "Device Driver (if any)" | |
| participant ShmemFS as "Shared Memory Filesystem (shmem)" | |
| participant KernelFS as "Kernel Filesystem" |
NewerOlder