procedural-3d-engine/examples
Ricardo Garcia afc1663f85 Fix occlusion query example visual glitch
In the occlusion query example, uniform buffers containing visibility
flags are only updated when the view changes, and visibility information
is calculated from occlusion queries coming from the previous frame.

This means a quick mouse movement can produce a visual glitch by which
the number of visible fragments becomes zero (and this is correctly
reflected in the UI overlay) but the color of the model remains
unchanged, or vice versa, until the view is changed again with the
mouse.

To fix this, update uniform buffers before preparing every frame as part
of the draw() method.
2019-03-20 14:15:44 +01:00
..
bloom Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
commandbuffers Code cleanup, free Vulkan resources 2018-12-01 22:31:51 +01:00
computecloth Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
computecullandlod Pass the full count of the indirectCommands to vkCmdDrawIndexedIndirect 2018-12-27 13:11:07 -07:00
computeheadless Validation layer present check 2018-05-11 08:43:20 +02:00
computenbody Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
computeparticles Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
computeshader Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
conditionalrender UI rendering as part of command Buffer 2018-09-07 14:00:19 +02:00
conservativeraster Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
debugmarker Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
deferred Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
deferredmultisampling Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
deferredshadows Removed fragment shader from shadow map generation pipeline 2018-09-16 21:39:31 +02:00
descriptorsets Use number of cubes for max. number of sets to allocate 2018-11-10 20:40:33 +01:00
displacement Use texture class descriptor with proper image usage layout (fixes validation) 2018-10-20 12:14:11 +02:00
distancefieldfonts Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
dynamicuniformbuffer Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
gears Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
geometryshader Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
hdr Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
imgui Updated ImGui example to support recent ImGui version 2018-08-29 18:24:39 +02:00
indirectdraw Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
inlineuniformblocks Fix maxInlineUniformBlockBindings value + comment 2018-11-14 17:32:46 +01:00
inputattachments Streamlined UI overlay, code cleanup 2018-08-31 21:15:43 +02:00
instancing Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
mesh Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
multisampling Samplecount for UIOverlay, refactored vertex inputs 2018-09-08 22:43:59 +02:00
multithreading Command buffer fence ordering, vertex input refactored 2018-09-09 10:15:51 +02:00
multiview Use non-multiview renderpass for view display pipeline, proper final image layout (validation) 2018-11-07 21:34:02 +01:00
occlusionquery Fix occlusion query example visual glitch 2019-03-20 14:15:44 +01:00
offscreen Merge branch 'master' into imgui_162 2018-09-07 13:44:01 +02:00
parallaxmapping Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
particlefire Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
pbrbasic Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
pbribl Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
pbrtexture Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
pipelines Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
pipelinestatistics Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
pushconstants Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
pushdescriptors Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
radialblur Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
raytracing Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
renderheadless Code cleanup 2018-11-10 20:32:48 +01:00
scenerendering Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
screenshot Removed unused variables 2018-11-10 20:13:25 +01:00
shadowmapping Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
shadowmappingcascade Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
shadowmappingomni Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
skeletalanimation Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
specializationconstants Update camera perspective and aspect ratio on window resize 2018-10-21 09:47:29 +02:00
sphericalenvmapping Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
ssao Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
stencilbuffer Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
subpasses Streamlined UI overlay, code cleanup 2018-08-31 21:15:43 +02:00
terraintessellation Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
tessellation Use texture class descriptor with proper image usage layout (fixes validation) 2018-10-20 12:14:11 +02:00
textoverlay Simplified text overlay example, code cleanup, better text blending 2018-03-24 11:35:02 +01:00
texture Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
texture3d Code cleanup, fixed validation error 2018-10-20 11:38:43 +02:00
texturearray Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
texturecubemap Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
texturemipmapgen Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
texturesparseresidency Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
triangle Merge pull request #488 from bioglaze/master 2018-08-26 09:56:48 +02:00
viewportarray Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
vulkanscene Updated samples to explicitly call drawUI (updated ImGUI version), some code cleanup, removed no-longer necessary UI setup 2018-08-30 21:08:02 +02:00
CMakeLists.txt wayland: Port to xdg-shell stable 2019-01-16 01:33:34 -07:00