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
const std = @import("std"); | |
pub fn BitReader(comptime UnderlyingReader: type) type { | |
return struct { | |
const Self = @This(); | |
underlying_reader: UnderlyingReader, | |
current_byte: u8 = 0, | |
offset_into_current_byte: u8 = 8, |
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
#version 400 | |
uniform usamplerBuffer u_indexer; | |
uniform sampler2D u_tex; | |
out vec4 out_color; | |
void main() { | |
// THIS IS WHAT I WANT TO WORK: | |
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
const std = @import("std"); | |
const Builder = std.build.Builder; | |
const Step = std.build.Step; | |
pub fn build(b: *Builder) void { | |
const target = b.standardTargetOptions(.{}); | |
const mode = b.standardReleaseOptions(); | |
const exe = b.addExecutable("hw", "hw.zig"); | |
exe.setTarget(target); |
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
SOURCES=main.cpp camera.cpp | |
HEADERS=camera.hpp | |
CFLAGS=-std=c++11 -Wall -g `sdl2-config --cflags` -I/opt/libjpeg-turbo/include | |
LFLAGS=`sdl2-config --libs` -L/opt/libjpeg-turbo/lib64 -l:libturbojpeg.a | |
OUT=../../bin/av1_video | |
$(OUT): $(SOURCES) $(HEADERS) | |
g++ -o $@ $(CFLAGS) $(SOURCES) $(LFLAGS) |