This article is now published on my website: A one-off git repo server.
This file contains 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
FORMAT_REGEX = re.compile(r''' | |
VK_FORMAT | |
(?: | |
# NVIDIA optical flow | |
_R16G16_S10_5_NV | |
| | |
# PVRTC | |
_(?P<pvrtc>PVRTC[12]) | |
_(?P<pvrtc_bpp>[24])BPP | |
_(?P<pvrtc_numeric_format>UNORM|SRGB) |
This file contains 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
struct SourceCodeJsonEscape | |
{ | |
const char * text; | |
}; | |
template<> | |
struct fmt::formatter<engine::SourceCodeJsonEscape> : fmt::formatter<fmt::string_view> | |
{ |
This file contains 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
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
This file contains 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 <iterator> | |
#include <algorithm> | |
#include <tuple> | |
#include <vector> | |
#include <iostream> | |
#include <numeric> | |
#include <functional> | |
#include <random> | |
#include <cassert> |
This file contains 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 <unordered_set> | |
#include <list> | |
#include <optional> | |
#include <functional> | |
#include <utility> | |
#include <tuple> | |
#include <memory> | |
#include <type_traits> | |
#include <cstdlib> |
This file contains 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
constexpr size_t tileSize = 8; | |
const size_t width = ...; | |
const size_t height = ...; | |
thrust::cuda::pointer<const float3> p = ...; | |
assert(width % tileSize == 0); | |
assert(height % tileSize == 0); | |
thrust::cuda::vector<float3> sums; |
This file contains 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
--- c:/Users/Anatoly/Documents/Projects/Vulkan-Hpp/vulkan/vulkan.hpp 2020-05-05 20:09:03.802924000 +0500 | |
+++ c:/VulkanSDK/1.2.135.0/Include/vulkan/vulkan.hpp 2020-04-24 11:54:44.062122600 +0500 | |
@@ -13150,6 +13150,22 @@ | |
return UniqueHandle<T,D>(data, deleter); | |
#endif | |
} | |
+ | |
+ template <typename T, typename D> | |
+ VULKAN_HPP_INLINE typename ResultValueType<UniqueHandle<T,D>>::type createResultValue( Result result, T & data, char const * message, std::initializer_list<Result> successCodes, typename UniqueHandleTraits<T,D>::deleter const& deleter ) | |
+ { |
This file contains 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 <optix.h> | |
#include <optix_stubs.h> | |
#include <optix_function_table_definition.h> | |
#include <cuda.h> | |
namespace Denoiser | |
{ | |
static void CUDA_CHECK(CUresult result) | |
{ |
This file contains 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
reset | |
set view equal xyz | |
unset border | |
unset tics | |
set xyplane 0 | |
set xrange [-3:3] | |
set yrange [-3:3] | |
set zrange [-3:3] | |
$cube << EOI |
NewerOlder