Skip to content

Instantly share code, notes, and snippets.

@gregcotten
gregcotten / CMakeLists.txt
Created September 10, 2026 18:38
Halide generator output replacement and COFF archive error reproducer
cmake_minimum_required(VERSION 3.28)
project(halide_output_repro LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(Halide CONFIG REQUIRED COMPONENTS JIT)
add_halide_generator(cache_add_generator SOURCES cache_add.cpp)
This file has been truncated, but you can view the full file.
0 0.0
1 5.960464477539063e-08
2 1.1920928955078125e-07
3 1.7881393432617188e-07
4 2.384185791015625e-07
5 2.980232238769531e-07
6 3.5762786865234375e-07
7 4.172325134277344e-07
8 4.76837158203125e-07
9 5.364418029785156e-07

Keybase proof

I hereby claim:

  • I am gregcotten on github.
  • I am gregcotten (https://keybase.io/gregcotten) on keybase.
  • I have a public key ASBAB7zRZXfhYE5yDfqT4j_lQWqcnrG2u0B6TiJpFgev7wo

To claim this, I am signing this object:

@gregcotten
gregcotten / CVPixelFormat Descriptions
Created August 29, 2019 18:45
All Public and Private CVPixelFormat Descriptions
Structure is [PixelFormatTitle: DescriptionDictionary]. PixelFormatTitle is the kCVPixelFormatType_ suffix (if known) and the FourCharCode as a string or int if the string is too short.
[["32ARGB / 32": {
BitsPerBlock = 32;
BitsPerComponent = 8;
BlackBlock = <ff000000>;
CGBitmapContextCompatibility = 1;
CGBitmapInfo = 16388;
CGImageCompatibility = 1;
ContainsAlpha = 1;