diff --git a/examples/19-oit/oit.cpp b/examples/19-oit/oit.cpp index d12965b73..b8660c063 100644 --- a/examples/19-oit/oit.cpp +++ b/examples/19-oit/oit.cpp @@ -346,11 +346,11 @@ public: const double freq = double(bx::getHPFrequency() ); float time = (float)( (now-m_timeOffset)/freq); - // Reference: - // Weighted, Blended Order-Independent Transparency - // http://jcgt.org/published/0002/02/09/ - // http://casual-effects.blogspot.com/2014/03/weighted-blended-order-independent.html - + // Reference(s): + // - Weighted, Blended Order-Independent Transparency + // https://web.archive.org/save/http://jcgt.org/published/0002/02/09/ + // https://web.archive.org/web/20181126040455/http://casual-effects.blogspot.com/2014/03/weighted-blended-order-independent.html + // const bx::Vec3 at = { 0.0f, 0.0f, 0.0f }; const bx::Vec3 eye = { 0.0f, 0.0f, -7.0f }; diff --git a/examples/37-gpudrivenrendering/gpudrivenrendering.cpp b/examples/37-gpudrivenrendering/gpudrivenrendering.cpp index d65200cf1..9a3bb3a6b 100644 --- a/examples/37-gpudrivenrendering/gpudrivenrendering.cpp +++ b/examples/37-gpudrivenrendering/gpudrivenrendering.cpp @@ -4,13 +4,11 @@ */ /* - * References: - * - * Experiments in GPU-based occlusion culling - * https://web.archive.org/web/20180920045301/https://interplayoflight.wordpress.com/2017/11/15/experiments-in-gpu-based-occlusion-culling/ - * - * Experiments in GPU-based occlusion culling part 2: MultiDrawIndirect and mesh lodding - * https://web.archive.org/web/20180920045332/https://interplayoflight.wordpress.com/2018/01/15/experiments-in-gpu-based-occlusion-culling-part-2-multidrawindirect-and-mesh-lodding/ + * Reference(s): + * - Experiments in GPU-based occlusion culling + * https://web.archive.org/web/20180920045301/https://interplayoflight.wordpress.com/2017/11/15/experiments-in-gpu-based-occlusion-culling/ + * - Experiments in GPU-based occlusion culling part 2: MultiDrawIndirect and mesh lodding + * https://web.archive.org/web/20180920045332/https://interplayoflight.wordpress.com/2018/01/15/experiments-in-gpu-based-occlusion-culling-part-2-multidrawindirect-and-mesh-lodding/ */ #include "common.h" diff --git a/examples/38-bloom/bloom.cpp b/examples/38-bloom/bloom.cpp index 804587d4e..1de0111ca 100644 --- a/examples/38-bloom/bloom.cpp +++ b/examples/38-bloom/bloom.cpp @@ -4,10 +4,9 @@ */ /* - * References: - * - * Next Generation Post Processing in Call of Duty: Advanced Warfare - * https://web.archive.org/web/20180920045230/http://www.iryoku.com/next-generation-post-processing-in-call-of-duty-advanced-warfare + * Reference(s): + * - Next Generation Post Processing in Call of Duty: Advanced Warfare + * https://web.archive.org/web/20180920045230/http://www.iryoku.com/next-generation-post-processing-in-call-of-duty-advanced-warfare */ #include "common.h" diff --git a/examples/common/bounds.cpp b/examples/common/bounds.cpp index 691bcfb18..2d73dfcb9 100644 --- a/examples/common/bounds.cpp +++ b/examples/common/bounds.cpp @@ -48,8 +48,9 @@ void toAabb(Aabb& _aabb, const Sphere& _sphere) void toAabb(Aabb& _aabb, const Disk& _disk) { - // Reference: - // https://web.archive.org/web/20181113055756/http://iquilezles.org/www/articles/diskbbox/diskbbox.htm + // Reference(s): + // - https://web.archive.org/web/20181113055756/http://iquilezles.org/www/articles/diskbbox/diskbbox.htm + // const bx::Vec3 nsq = bx::mul(_disk.m_normal, _disk.m_normal); const bx::Vec3 one = { 1.0f, 1.0f, 1.0f }; const bx::Vec3 tmp = bx::sub(one, nsq); @@ -68,8 +69,9 @@ void toAabb(Aabb& _aabb, const Disk& _disk) void toAabb(Aabb& _aabb, const Cylinder& _cylinder) { - // Reference: - // https://web.archive.org/web/20181113055756/http://iquilezles.org/www/articles/diskbbox/diskbbox.htm + // Reference(s): + // - https://web.archive.org/web/20181113055756/http://iquilezles.org/www/articles/diskbbox/diskbbox.htm + // const bx::Vec3 axis = bx::sub(_cylinder.m_end, _cylinder.m_pos); const bx::Vec3 asq = bx::mul(axis, axis); const bx::Vec3 nsq = bx::mul(asq, 1.0f/bx::dot(axis, axis) ); diff --git a/src/bgfx.cpp b/src/bgfx.cpp index c3df9abe2..75b191064 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -4758,13 +4758,13 @@ extern "C" // When laptop setup has integrated and discrete GPU, following driver workarounds will // select discrete GPU: - // Reference: - // - https://web.archive.org/web/20180722051003/https://docs.nvidia.com/gameworks/content/technologies/desktop/optimus.htm + // Reference(s): + // - https://web.archive.org/web/20180722051003/https://docs.nvidia.com/gameworks/content/technologies/desktop/optimus.htm // __declspec(dllexport) uint32_t NvOptimusEnablement = UINT32_C(1); - // Reference: - // - https://web.archive.org/web/20180722051032/https://gpuopen.com/amdpowerxpressrequesthighperformance/ + // Reference(s): + // - https://web.archive.org/web/20180722051032/https://gpuopen.com/amdpowerxpressrequesthighperformance/ // __declspec(dllexport) uint32_t AmdPowerXpressRequestHighPerformance = UINT32_C(1); } diff --git a/src/nvapi.cpp b/src/nvapi.cpp index 33c16973c..3ece9c7fc 100644 --- a/src/nvapi.cpp +++ b/src/nvapi.cpp @@ -11,9 +11,9 @@ namespace bgfx /* * NVAPI * - * Reference: - * http://docs.nvidia.com/gameworks/content/gameworkslibrary/coresdk/nvapi/index.html - * https://github.com/jNizM/AHK_NVIDIA_NvAPI/blob/master/info/NvAPI_IDs.txt + * Reference(s): + * - https://web.archive.org/web/20181126035649/https://docs.nvidia.com/gameworks/content/gameworkslibrary/coresdk/nvapi/index.html + * - https://web.archive.org/web/20181126035710/https://github.com/jNizM/AHK_NVIDIA_NvAPI/blob/master/info/NvAPI_IDs.txt */ struct NvPhysicalGpuHandle; @@ -72,8 +72,8 @@ namespace bgfx /* * NVIDIA Aftermath * - * Reference: - * https://developer.nvidia.com/nvidia-aftermath + * Reference(s): + * - https://web.archive.org/web/20181126035743/https://developer.nvidia.com/nvidia-aftermath */ typedef int32_t (*PFN_NVAFTERMATH_DX11_INITIALIZE)(int32_t _version, int32_t _flags, const ID3D11Device* _device); diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index 42374f490..7fc4e8777 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -560,8 +560,8 @@ namespace bgfx { namespace d3d11 /* * AMD GPU Services (AGS) library * - * Reference: - * https://github.com/GPUOpen-LibrariesAndSDKs/AGS_SDK + * Reference(s): + * - https://web.archive.org/web/20181126035805/https://github.com/GPUOpen-LibrariesAndSDKs/AGS_SDK */ enum AGS_RETURN_CODE { diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index 1bfa5d490..7f0afda9a 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -2089,10 +2089,11 @@ BX_TRACE("%d, %d, %d, %s", _array, _srgb, _mipAutogen, getName(_format) ); // EXT_texture_format_BGRA8888 wants both format and internal // format to be BGRA. // - // Reference: - // https://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_format_BGRA8888.txt - // https://www.opengl.org/registry/specs/EXT/bgra.txt - // https://www.khronos.org/registry/gles/extensions/APPLE/APPLE_texture_format_BGRA8888.txt + // Reference(s): + // - https://web.archive.org/web/20181126035829/https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_texture_format_BGRA8888.txt + // - https://web.archive.org/web/20181126035841/https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_bgra.txt + // - https://web.archive.org/web/20181126035851/https://www.khronos.org/registry/OpenGL/extensions/APPLE/APPLE_texture_format_BGRA8888.txt + // if (!s_extension[Extension::EXT_bgra ].m_supported && !s_extension[Extension::APPLE_texture_format_BGRA8888].m_supported) { diff --git a/src/shader_spirv.h b/src/shader_spirv.h index 8514ad1ab..1fe1c9340 100644 --- a/src/shader_spirv.h +++ b/src/shader_spirv.h @@ -15,8 +15,9 @@ BX_ERROR_RESULT(BGFX_SHADER_SPIRV_INVALID_INSTRUCTION, BX_MAKEFOURCC('S', 'H', 0 namespace bgfx { - // Reference: https://www.khronos.org/registry/spir-v/specs/1.0/SPIRV.html - + // Reference(s): + // - https://web.archive.org/web/20181126035927/https://www.khronos.org/registry/spir-v/specs/1.0/SPIRV.html + // struct SpvOpcode { enum Enum