{mach,examples,shaderexp}: fix default minimum window size
This commit is contained in:
parent
9676665ccf
commit
a873227ab8
11 changed files with 4 additions and 47 deletions
|
|
@ -33,10 +33,6 @@ const Dir = struct {
|
|||
};
|
||||
|
||||
pub fn init(app: *App, core: *mach.Core) !void {
|
||||
try core.setOptions(.{
|
||||
.size_min = .{ .width = 20, .height = 20 },
|
||||
});
|
||||
|
||||
const eye = vec3(5.0, 7.0, 5.0);
|
||||
const target = vec3(0.0, 0.0, 0.0);
|
||||
|
||||
|
|
|
|||
|
|
@ -26,10 +26,6 @@ pub const App = @This();
|
|||
pub fn init(app: *App, core: *mach.Core) !void {
|
||||
timer = try mach.Timer.start();
|
||||
|
||||
try core.setOptions(.{
|
||||
.size_min = .{ .width = 20, .height = 20 },
|
||||
});
|
||||
|
||||
const vs_module = core.device.createShaderModuleWGSL("vert.wgsl", @embedFile("vert.wgsl"));
|
||||
|
||||
const vertex_attributes = [_]gpu.VertexAttribute{
|
||||
|
|
|
|||
|
|
@ -41,10 +41,6 @@ bgl: *gpu.BindGroupLayout,
|
|||
pub fn init(app: *App, core: *mach.Core) !void {
|
||||
timer = try mach.Timer.start();
|
||||
|
||||
try core.setOptions(.{
|
||||
.size_min = .{ .width = 20, .height = 20 },
|
||||
});
|
||||
|
||||
const vs_module = core.device.createShaderModuleWGSL("vert.wgsl", @embedFile("vert.wgsl"));
|
||||
|
||||
const vertex_attributes = [_]gpu.VertexAttribute{
|
||||
|
|
|
|||
|
|
@ -32,12 +32,6 @@ bind_group: *gpu.BindGroup,
|
|||
texture_atlas_data: AtlasRGB8,
|
||||
|
||||
pub fn init(app: *App, core: *mach.Core) !void {
|
||||
try core.setOptions(.{
|
||||
.width = 640,
|
||||
.height = 480,
|
||||
.size_min = .{ .width = 20, .height = 20 },
|
||||
});
|
||||
|
||||
const queue = core.device.getQueue();
|
||||
|
||||
// TODO: Refactor texture atlas size number
|
||||
|
|
|
|||
|
|
@ -30,10 +30,6 @@ var block_dimension: u32 = tile_dimension - (filter_size - 1);
|
|||
pub fn init(app: *App, core: *mach.Core) !void {
|
||||
const queue = core.device.getQueue();
|
||||
|
||||
try core.setOptions(.{
|
||||
.size_min = .{ .width = 20, .height = 20 },
|
||||
});
|
||||
|
||||
const blur_shader_module = core.device.createShaderModuleWGSL("blur.wgsl", @embedFile("blur.wgsl"));
|
||||
|
||||
const blur_pipeline_descriptor = gpu.ComputePipeline.Descriptor{
|
||||
|
|
|
|||
|
|
@ -23,10 +23,6 @@ pub const App = @This();
|
|||
pub fn init(app: *App, core: *mach.Core) !void {
|
||||
timer = try mach.Timer.start();
|
||||
|
||||
try core.setOptions(.{
|
||||
.size_min = .{ .width = 20, .height = 20 },
|
||||
});
|
||||
|
||||
const vs_module = core.device.createShaderModuleWGSL("vert.wgsl", @embedFile("vert.wgsl"));
|
||||
|
||||
const vertex_attributes = [_]gpu.VertexAttribute{
|
||||
|
|
|
|||
|
|
@ -23,10 +23,6 @@ bind_group: *gpu.BindGroup,
|
|||
pub fn init(app: *App, core: *mach.Core) !void {
|
||||
timer = try mach.Timer.start();
|
||||
|
||||
try core.setOptions(.{
|
||||
.size_min = .{ .width = 20, .height = 20 },
|
||||
});
|
||||
|
||||
const vs_module = core.device.createShaderModuleWGSL("vert.wgsl", @embedFile("vert.wgsl"));
|
||||
|
||||
const vertex_attributes = [_]gpu.VertexAttribute{
|
||||
|
|
|
|||
|
|
@ -26,10 +26,6 @@ pub const App = @This();
|
|||
pub fn init(app: *App, core: *mach.Core) !void {
|
||||
timer = try mach.Timer.start();
|
||||
|
||||
try core.setOptions(.{
|
||||
.size_min = .{ .width = 20, .height = 20 },
|
||||
});
|
||||
|
||||
const vs_module = core.device.createShaderModuleWGSL("vert.wgsl", @embedFile("vert.wgsl"));
|
||||
|
||||
const vertex_attributes = [_]gpu.VertexAttribute{
|
||||
|
|
|
|||
|
|
@ -24,10 +24,6 @@ pub const App = @This();
|
|||
pub fn init(app: *App, core: *mach.Core) !void {
|
||||
timer = try mach.Timer.start();
|
||||
|
||||
try core.setOptions(.{
|
||||
.size_min = .{ .width = 20, .height = 20 },
|
||||
});
|
||||
|
||||
const vs_module = core.device.createShaderModuleWGSL("vert.wgsl", @embedFile("vert.wgsl"));
|
||||
|
||||
const vertex_attributes = [_]gpu.VertexAttribute{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue