Skip to content

ksgfk/RadRay

Repository files navigation

RadRay

TODO

compile

  • cmake config

    • cmake --preset win-x64-debug
    • cmake --preset win-x64-release
  • generate compile_commands.json on win

    • .\win_gen_compile_commands.ps1 -BuildDir .\build_debug -Configuration Debug
    • .\win_gen_compile_commands.ps1 -BuildDir .\build_release -Configuration Release

dev env

vscode

install extensions: C/C++ Extension Pack, clangd

settings.json

{
    "xmake.additionalConfigArguments": [],
    "C_Cpp.codeAnalysis.runAutomatically": true,
    "C_Cpp.intelliSenseEngine": "disabled",
    "C_Cpp.formatting": "disabled",
    "C_Cpp.autoAddFileAssociations": false,
    "C_Cpp.autocompleteAddParentheses": false,
    "C_Cpp.autocomplete": "disabled",
    "C_Cpp.errorSquiggles": "disabled",
    "C_Cpp.codeFolding": "disabled",
    "C_Cpp.configurationWarnings": "disabled",
    "C_Cpp.default.enableConfigurationSquiggles": false,
    "C_Cpp.codeAnalysis.clangTidy.enabled": true,
    "C_Cpp.codeAnalysis.clangTidy.args": [
        "--config-file=${workspaceFolder}/.clang-tidy",
        "-p",
        "${workspaceFolder}/.vscode"
    ],
    "clangd.enable": true,
    "clangd.arguments": [
        "--compile-commands-dir=${workspaceFolder}/.vscode",
        "--log=error",
        "--completion-style=bundled",
        "--background-index",
        "--background-index-priority=normal",
        "--header-insertion=never",
        "--pch-storage=memory"
    ],
    "VSCodeCounter.exclude": [
        "**/.gitignore",
        "**/.vscode/**",
        "**/node_modules/**",
        "**/build_debug/**",
    ]
}

launch.json

example

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(msvc) Launch",
            "type": "cppvsdbg",
            "request": "launch",
            "program": "${command:cmake.launchTargetPath}",
            "args": [],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [
                {
                    "name": "PATH",
                    "value": "${command:cmake.getLaunchTargetDirectory}:${env:PATH}"
                }
            ],
            "console": "integratedTerminal"
        }
    ]
}

special launch settings

hello_imgui

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "(msvc) Launch",
            "type": "cppvsdbg",
            "request": "launch",
            "program": "${command:cmake.launchTargetPath}",
            "args": [
                // "vulkan",
                "d3d12",
                // "-st"
            ],
            "stopAtEntry": false,
            "cwd": "${workspaceFolder}",
            "environment": [
                {
                    "name": "PATH",
                    "value": "${command:cmake.getLaunchTargetDirectory}:${env:PATH}"
                }
            ],
            "console": "integratedTerminal"
        }
    ]
}

About

An experimental render toolset

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published