authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-09-14 20:45:42 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-09-14 20:45:42 -07:00
log68eede0ded013ac7d03dcba3554f30526aba86c9
tree3f7651d0a81d54289ebbe58edb9860dc33af446f
parent2a7d141ddb46bb1ef5dd5d1bb9f82152807ad650

sRGB: increase comptime quota for to_linear_rgb()


1 files changed, 1 insertions(+), 0 deletions(-)

sRGB.zig+1
...@@ -75,6 +75,7 @@ pub fn format(x: Self, comptime fmt: []const u8, options: std.fmt.FormatOptions,...@@ -75,6 +75,7 @@ pub fn format(x: Self, comptime fmt: []const u8, options: std.fmt.FormatOptions,
7575
76pub fn to_linear_rgb(x: Self) color.LinearRgb {76pub fn to_linear_rgb(x: Self) color.LinearRgb {
77 const lut = comptime blk: {77 const lut = comptime blk: {
78 @setEvalBranchQuota(10_000);
78 var res: [256]f32 = undefined;79 var res: [256]f32 = undefined;
79 for (0..256) |i| {80 for (0..256) |i| {
80 const c = @as(f32, @floatFromInt(i)) / 255.0;81 const c = @as(f32, @floatFromInt(i)) / 255.0;