LETSFUCKINGGOOOOOOO

This commit is contained in:
Benjamin Kyd
2023-11-29 12:38:42 +00:00
parent da3046525f
commit 7f9ef80b66
4 changed files with 10 additions and 144 deletions

149
.vims
View File

@@ -3,7 +3,7 @@ let s:so_save = &g:so | let s:siso_save = &g:siso | setg so=0 siso=0 | setl so=-
let v:this_session=expand("<sfile>:p")
silent only
silent tabonly
cd ~/dprog/active/inferno-hart
cd ~/programming/inferno-hart
if expand('%') == '' && !&modified && line('$') <= 1 && getline(1) == ''
let s:wipebuf = bufnr('%')
endif
@@ -13,70 +13,12 @@ if &shortmess =~ 'A'
else
set shortmess=aoO
endif
badd +693 src/graphics/vulkan_tutorial.cpp
badd +304 src/inferno.cpp
badd +45 src/scene/mesh.hpp
badd +75 src/scene/mesh.cpp
badd +58 src/graphics/pipeline.cpp
badd +124 src/graphics/vkrenderer.cpp
badd +23 src/graphics/pipeline.hpp
badd +1 src/graphics/device.cpp
badd +19 src/graphics/device.hpp
badd +54 src/graphics/renderpass.cpp
badd +20 src/graphics/renderpass.hpp
badd +26 src/graphics/swapchain.hpp
badd +56 src/inferno.hpp
badd +1 src/main.cpp
badd +1 ~/dprog/active/inferno-hart/src/graphics/descriptor.cpp
badd +12 src/graphics/vkrenderer.hpp
badd +42 src/renderer/renderer.hpp
badd +28 src/scene/scene.cpp
badd +173 src/graphics/buffer.cpp
badd +5 res/shaders/vulkan_test.vert
badd +46 src/graphics/buffer.hpp
badd +54 src/renderer/renderer.cpp
badd +182 src/graphics/swapchain.cpp
badd +22 res/shaders/basic.vert
badd +181 src/graphics/shader.cpp
badd +51 src/graphics/shader.hpp
badd +1 src/scene/scene.hpp
badd +240 src/scene/camera.cpp
badd +59 libhart/scene/camera.hpp
badd +30 src/graphics.hpp
badd +1 src/graphics/pipeline.cpp
argglobal
%argdel
edit src/inferno.cpp
let s:save_splitbelow = &splitbelow
let s:save_splitright = &splitright
set splitbelow splitright
wincmd _ | wincmd |
vsplit
wincmd _ | wincmd |
vsplit
2wincmd h
wincmd w
wincmd w
wincmd _ | wincmd |
split
1wincmd k
wincmd w
let &splitbelow = s:save_splitbelow
let &splitright = s:save_splitright
wincmd t
let s:save_winminheight = &winminheight
let s:save_winminwidth = &winminwidth
set winminheight=0
set winheight=1
set winminwidth=0
set winwidth=1
exe 'vert 1resize ' . ((&columns * 112 + 191) / 383)
exe 'vert 2resize ' . ((&columns * 132 + 191) / 383)
exe '3resize ' . ((&lines * 21 + 35) / 70)
exe 'vert 3resize ' . ((&columns * 137 + 191) / 383)
exe '4resize ' . ((&lines * 45 + 35) / 70)
exe 'vert 4resize ' . ((&columns * 137 + 191) / 383)
edit src/graphics/pipeline.cpp
argglobal
balt res/shaders/basic.vert
balt src/graphics/pipeline.cpp
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
@@ -87,89 +29,12 @@ setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 304 - ((33 * winheight(0) + 33) / 67)
let s:l = 1 - ((0 * winheight(0) + 27) / 54)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 304
normal! 09|
wincmd w
argglobal
if bufexists(fnamemodify("src/graphics/vkrenderer.cpp", ":p")) | buffer src/graphics/vkrenderer.cpp | else | edit src/graphics/vkrenderer.cpp | endif
if &buftype ==# 'terminal'
silent file src/graphics/vkrenderer.cpp
endif
balt src/graphics.hpp
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 124 - ((43 * winheight(0) + 33) / 67)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 124
keepjumps 1
normal! 0
wincmd w
argglobal
if bufexists(fnamemodify("src/scene/scene.hpp", ":p")) | buffer src/scene/scene.hpp | else | edit src/scene/scene.hpp | endif
if &buftype ==# 'terminal'
silent file src/scene/scene.hpp
endif
balt src/graphics/shader.hpp
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 2 - ((1 * winheight(0) + 10) / 21)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 2
normal! 0
wincmd w
argglobal
if bufexists(fnamemodify("src/scene/mesh.hpp", ":p")) | buffer src/scene/mesh.hpp | else | edit src/scene/mesh.hpp | endif
if &buftype ==# 'terminal'
silent file src/scene/mesh.hpp
endif
balt libhart/scene/camera.hpp
setlocal fdm=manual
setlocal fde=0
setlocal fmr={{{,}}}
setlocal fdi=#
setlocal fdl=0
setlocal fml=1
setlocal fdn=20
setlocal fen
silent! normal! zE
let &fdl = &fdl
let s:l = 45 - ((22 * winheight(0) + 22) / 45)
if s:l < 1 | let s:l = 1 | endif
keepjumps exe s:l
normal! zt
keepjumps 45
normal! 027|
wincmd w
2wincmd w
exe 'vert 1resize ' . ((&columns * 112 + 191) / 383)
exe 'vert 2resize ' . ((&columns * 132 + 191) / 383)
exe '3resize ' . ((&lines * 21 + 35) / 70)
exe 'vert 3resize ' . ((&columns * 137 + 191) / 383)
exe '4resize ' . ((&lines * 45 + 35) / 70)
exe 'vert 4resize ' . ((&columns * 137 + 191) / 383)
tabnext 1
if exists('s:wipebuf') && len(win_findbuf(s:wipebuf)) == 0 && getbufvar(s:wipebuf, '&buftype') isnot# 'terminal'
silent exe 'bwipe ' . s:wipebuf
@@ -177,8 +42,6 @@ endif
unlet! s:wipebuf
set winheight=1 winwidth=20
let &shortmess = s:shortmess_save
let &winminheight = s:save_winminheight
let &winminwidth = s:save_winminwidth
let s:sx = expand("<sfile>:p:r")."x.vim"
if filereadable(s:sx)
exe "source " . fnameescape(s:sx)

View File

@@ -126,6 +126,8 @@ Pipeline* pipeline_create(GraphicsDevice* device, SwapChain* swap, Shader* shade
renderingPipelineInfo.sType = VK_STRUCTURE_TYPE_PIPELINE_RENDERING_CREATE_INFO_KHR;
renderingPipelineInfo.colorAttachmentCount = 1;
renderingPipelineInfo.pColorAttachmentFormats = &pipeline->Swap->ImageFormat;
renderingPipelineInfo.depthAttachmentFormat = find_depth_format(device);
renderingPipelineInfo.pNext = nullptr;
VkGraphicsPipelineCreateInfo pipelineInfo = {};
pipelineInfo.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO;

View File

@@ -31,4 +31,6 @@ void swapchain_framebuffers_create(SwapChain* swapchain);
void swapchain_recreate(SwapChain* swapchain);
VkFormat find_depth_format(GraphicsDevice* device);
}

View File

@@ -307,7 +307,6 @@ int inferno_run(InfernoApp* app)
inferno_timer_get_time(app->MainTimer).count());
inferno_move_input(app, inferno_timer_get_time(app->MainTimer));
exit(0);
// // Menu Bar
// static bool showPreview = true;