Giter VIP home page Giter VIP logo

vulkandemos's Introduction

简要

Vulkan Samples

码云

码云地址

说明

按照序号的顺序开始看,例如从2_Triangle3_DemoBase一直到最后一个。Demo一步一步的展示了如何对Vulkan进行简单的封装以使得更加易用,如果从较高的序号开始阅读可能出现由于封装过度从而导致阅读理解困难。每一个Demo都会尽量配一个粗浅的文档,文档里面会大致说明该Demo的意图。

环境要求

Windows

MacOS

  • CMake 3.13.0:下载安装最新版本即可。
  • XCode 10:比它高应该也没什么问题。
  • macOS 10.11 or iOS 9:因为Vulkan在苹果那边没有得到官方支持,是通过对Metal进行的封装,因此需要10.11系统以上。

Linux

  • CMake 3.13.0:下载安装最新版本即可。
  • Ubuntu 18.04:目前我使用的是Ubuntu 18.04系统,其它版本的没有尝试。
  • VSCode:Ubuntu下我使用了VSCode作为开发环境,VSCode下Configure(Task),Build(Task),Debug我都配置好了,但是需要安装VSCode C++插件,插件名称:C/C++。

Window环境搭建

Ubuntu环境搭建

MacOS环境搭建

Android环境搭建

Introduction

Vulkan Examples

Requirements

Windows

MacOS

  • XCode 10
  • CMake 3.13.0
  • macOS 10.11 or iOS 9

Linux

  • CMake 3.13.0

Android

  • Android Studio 3.2
  • NDK r16b

Usage

Command line

CMake-GUI

  • git clone https://github.com/BobLChen/VulkanDemos.git
  • Open CMake-GUI
  • Where is the source code : VulkanDemos
  • Where to build the binaries : VulkanDemos/build
  • Click Configure button
  • Choose your generator
  • Click Generate button

Example

博客地址 2_Triangle

博客地址

博客地址

博客地址

博客地址 6_ImageGUI

博客地址 7_UniformBuffer

博客地址

博客地址 9_LoadMesh

博客地址 10_Pipelines

博客地址 11_Texture

博客地址 12_PushConstants

博客地址 13_DynamicUniformBuffer

博客地址 14_TextureArray

博客地址 15_Texture3D

博客地址

17_InputAttachments

博客地址

  • Albedo:VK_FORMAT_R8G8B8A8_UNORM
  • Normal:VK_FORMAT_R16G16B16A16_SFLOAT
  • Position:VK_FORMAT_R16G16B16A16_SFLOAT 18_DeferredShading

博客地址

  • Albedo: VK_FORMAT_R8G8B8A8_UNORM
  • Normal: VK_FORMAT_R8G8B8A8_UNORM
  • Position: Reconstructing world space position from depth buffer 19_OptimizeDeferredShading

博客地址

博客地址 21_Stencil

博客地址 22_RenderTarget

博客地址

博客地址 24_EdgeDetect

博客地址 25_Bloom

博客地址 26_Skeleton

博客地址

  • Pack 4 bone index(uint32) to 1 UInt32
  • Pack 4 bone weight(float) to 2 UInt32 Reduce 5 float per vertex

博客地址

  • Dual quat animation, reduce 8 float per bone. From matrix4x4 to 2 vector. 28_SkeletonDualQuat

博客地址

  • Store skeleton datas in texture and used in vertex shader.

30_InstanceSkin

31_MSAA

32_FXAA

33_InstanceDraw

34_SimpleShadow

35_PCFShadow

36_OmniShadow

37_CascadedShadow

38_IndirectDraw

39_OcclusionQueries

40_QueryStatistics

41_ComputeShader

43_ComputeParticles

44_ComputeRaytracing

45_ComputeFrustum

46_GeometryHouse

47_DebugNormal

48_GeometryOmniShadow

49_SimpleTessellation

50_PNTessellation

51_Pick

52_HDRPipeline

53_SSAO

54_ThreadedRendering

55_PBR_DirectLighting

56_PBR_IBL

57_GodRay

58_Imposter

59_MotionBlur

60_DepthPeeling

61_CPURayTracing

62_RTXRayTracingBasic

63_RTXRayTracingMesh

64_RTXRayTracingSimple

65_RTXRayTracingReflection

66_RTXRayTracingHitGroup

67_RTXRayTracingMonteCarlo

68_RTXPathTracing

69_TileBasedForwardRendering

70_SDFFont

71_ShuffleIntrinsics

72_MeshLOD

vulkandemos's People

Contributors

boblchen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vulkandemos's Issues

Compile error?

When i compile the demo in macos, some error happend:

/Users/xieyuandong/Workspace/dl-algorithm/VulkanDemos/examples/63_RTXRayTracingMesh/RTXRayTracingMeshDemo.cpp:1284:2: error: unknown type name 'VkPhysicalDeviceDescriptorIndexingFeatures'; did you mean
      'VkPhysicalDeviceDescriptorIndexingFeaturesEXT'?
        VkPhysicalDeviceDescriptorIndexingFeatures                      m_IndexingFeatures;
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        VkPhysicalDeviceDescriptorIndexingFeaturesEXT
/Users/xieyuandong/Workspace/dl-algorithm/VulkanDemos/examples/67_RTXRayTracingMonteCarlo/RTXRayTracingMonteCarloDemo.cpp:1473:2: error: unknown type name 'VkPhysicalDeviceDescriptorIndexingFeatures'; did
      you mean 'VkPhysicalDeviceDescriptorIndexingFeaturesEXT'?
/Users/xieyuandong/Workspace/dl-algorithm/VulkanDemos/external/vulkan/macos/include/vulkan/vulkan_core.h/Users/xieyuandong/Workspace/dl-algorithm/VulkanDemos/examples/64_RTXRayTracingSimple/RTXRayTracingSimpleDemo.cpp::79601292::32::  noteerror: : 'VkPhysicalDeviceDescriptorIndexingFeaturesEXT' unknowndeclared  typehere name
 'VkPhysicalDeviceDescriptorIndexingFeatures'; did you
      mean 'VkPhysicalDeviceDescriptorIndexingFeaturesEXT'?
} VkPhysicalDeviceDescriptorIndexingFeaturesEXT;

Can you have a look at it? @BobLChen

Where can find structure of this examples

Find this repository, many interesting examples, but have questions:
take simplest example Triangle.cpp this example based on Application/AppModuleBase.h, if looking into it find that it based on next files:
#include "GenericWindow.h"
#include "GenericApplication.h"
#include "Engine.h"
So where find start point of this application?

感谢你的帮助

你的项目就像是一盏明灯,为我照亮vulkan漆黑的路。

fatal error: 'vulkan/vulkan.h' file not found

compile on android studio
error below
In file included from /Users/wangjunjie/Documents/Github/VulkanDemos/Engine/Monkey/Demo/DVKBuffer.cpp:1: In file included from /Users/wangjunjie/Documents/Github/VulkanDemos/Engine/Monkey/Vulkan/VulkanCommon.h:4: In file included from /Users/wangjunjie/Documents/Github/VulkanDemos/Engine/Monkey/Vulkan/VulkanRHI.h:5: In file included from /Users/wangjunjie/Documents/Github/VulkanDemos/Engine/Monkey/Vulkan/VulkanPlatform.h:14: In file included from /Users/wangjunjie/Documents/Github/VulkanDemos/Engine/Monkey/Vulkan/Android/VulkanPlatformDefines.h:3: /Users/wangjunjie/Documents/Github/VulkanDemos/Engine/Monkey/Vulkan/Android/VulkanAndroidPlatform.h:10:10: fatal error: 'vulkan/vulkan.h' file not found

CONFIGURE_FILE Problem configuring file

compile on android studio
error below:
CMake Error at /Users/wangjunjie/Documents/Github/VulkanDemos/external/assimp/CMakeLists.txt:196 (CONFIGURE_FILE): CONFIGURE_FILE Problem configuring file CMake Error at /Users/wangjunjie/Documents/Github/VulkanDemos/external/assimp/CMakeLists.txt:196 (CONFIGURE_FILE): CONFIGURE_FILE Problem configuring file Configuration failed. CMake Error at /Users/wangjunjie/Documents/Github/VulkanDemos/external/assimp/CMakeLists.txt:191 (CONFIGURE_FILE): CONFIGURE_FILE Problem configuring file CMake Error at /Users/wangjunjie/Documents/Github/VulkanDemos/external/assimp/CMakeLists.txt:191 (CONFIGURE_FILE): CONFIGURE_FILE Problem configuring file Configuration failed. CMake Error at /Users/wangjunjie/Documents/Github/VulkanDemos/external/assimp/CMakeLists.txt:196 (CONFIGURE_FILE): CONFIGURE_FILE Problem configuring file CMake Error at /Users/wangjunjie/Documents/Github/VulkanDemos/external/assimp/CMakeLists.txt:196 (CONFIGURE_FILE): CONFIGURE_FILE Problem configuring file Configuration failed.

Android 上无法运行

2022-07-02 17:39:24.974 12586-12586/? W/run-as: type=1400 audit(0.0:971): avc: granted { execute } for name="install_server-50cdcce7" dev="dm-37" ino=65367 scontext=u:r:runas_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file app=com.monkey.sample.demo02
2022-07-02 17:39:24.974 12586-12586/? W/install_server-: type=1400 audit(0.0:972): avc: granted { execute } for path="/data/data/com.monkey.sample.demo02/code_cache/install_server-50cdcce7" dev="dm-37" ino=65367 scontext=u:r:runas_app:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file app=com.monkey.sample.demo02
2022-07-02 17:39:25.011 12586-12586/? E/studio.deploy: Could not remove dir '/data/data/com.monkey.sample.demo02/code_cache/.ll/': No such file or directory
2022-07-02 17:39:25.181 12600-12600/? W/re-initialized>: type=1400 audit(0.0:973): avc: granted { execute } for path="/data/user/0/com.monkey.sample.demo02/code_cache/startup_agents/50cdcce7-agent-alt.so" dev="dm-37" ino=59730 scontext=u:r:untrusted_app_27:s0:c512,c768 tcontext=u:object_r:app_data_file:s0:c512,c768 tclass=file app=com.monkey.sample.demo02
2022-07-02 17:39:25.186 12600-12600/? W/y.sample.demo0: DexFile /data/data/com.monkey.sample.demo02/code_cache/.studio/instruments-88564b4d.jar is in boot class path but is not in a known location
2022-07-02 17:39:25.809 12600-12600/com.monkey.sample.demo02 W/y.sample.demo0: Current dex file has more than one class in it. Calling RetransformClasses on this class might fail if no transformations are applied to it!
2022-07-02 17:39:25.987 12600-12641/com.monkey.sample.demo02 E/Adreno-AppProfiles: Could not find QSPM HAL service
2022-07-02 17:39:25.992 12600-12641/com.monkey.sample.demo02 A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 12641 (y.sample.demo02), pid 12600 (y.sample.demo02)
2022-07-02 17:39:26.238 1880-2657/? W/InputManager-JNI: Input channel object '8e23506 Splash Screen com.monkey.sample.demo02 (client)' was disposed without first being removed with the input manager!
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: Cmdline: com.monkey.sample.demo02
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: pid: 12600, tid: 12641, name: y.sample.demo02 >>> com.monkey.sample.demo02 <<<
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #1 pc 000651b9 /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libVkLayer_unique_objects.so (BuildId: f69d344b9bc5331d83172c6fed7a346695e1aa23)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #2 pc 00086225 /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libVkLayer_unique_objects.so (BuildId: f69d344b9bc5331d83172c6fed7a346695e1aa23)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #3 pc 001cb4e9 /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libVkLayer_core_validation.so (BuildId: d94da44c1ef8cd658748489e9753b2049e6b3f00)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #4 pc 001e9c61 /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libVkLayer_core_validation.so (BuildId: d94da44c1ef8cd658748489e9753b2049e6b3f00)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #5 pc 000a8859 /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libVkLayer_object_tracker.so (BuildId: e5b157581070e1105bf4b361ce2404e7ca60076d)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #6 pc 000c8acd /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libVkLayer_object_tracker.so (BuildId: e5b157581070e1105bf4b361ce2404e7ca60076d)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #7 pc 000fb7e1 /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libVkLayer_parameter_validation.so (BuildId: 66dfd18dbb82edfe615d3f4fd65834998a6733bd)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #8 pc 0011ba91 /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libVkLayer_parameter_validation.so (BuildId: 66dfd18dbb82edfe615d3f4fd65834998a6733bd)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #9 pc 0008c8e9 /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libVkLayer_threading.so (BuildId: ef6d07b44bb57451a8d36a5ddb7c875aee854bff)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #10 pc 000abf11 /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libVkLayer_threading.so (BuildId: ef6d07b44bb57451a8d36a5ddb7c875aee854bff)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #11 pc 0005c621 /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libexample-libd.so (VulkanRHI::SetupDebugLayerCallback()+124) (BuildId: 4c5f14a9a7adb7e2e08fa2098e6f3953e1664e48)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #12 pc 0004f255 /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libexample-libd.so (VulkanRHI::InitInstance()+52) (BuildId: 4c5f14a9a7adb7e2e08fa2098e6f3953e1664e48)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #13 pc 0004f209 /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libexample-libd.so (VulkanRHI::Init()+44) (BuildId: 4c5f14a9a7adb7e2e08fa2098e6f3953e1664e48)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #14 pc 00046e6b /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libexample-libd.so (Engine::PreInit(std::__ndk1::vector<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::allocator<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > > > const&, int, int, char const*)+346) (BuildId: 4c5f14a9a7adb7e2e08fa2098e6f3953e1664e48)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #15 pc 00048f61 /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libexample-libd.so (EnginePreInit(std::__ndk1::vector<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator >, std::__ndk1::allocator<std::__ndk1::basic_string<char, std::__ndk1::char_traits, std::__ndk1::allocator > > > const&)+280) (BuildId: 4c5f14a9a7adb7e2e08fa2098e6f3953e1664e48)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #16 pc 000373d5 /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libexample-libd.so (BuildId: 4c5f14a9a7adb7e2e08fa2098e6f3953e1664e48)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #17 pc 000372db /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libexample-libd.so (BuildId: 4c5f14a9a7adb7e2e08fa2098e6f3953e1664e48)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #18 pc 00074a4f /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libexample-libd.so (BuildId: 4c5f14a9a7adb7e2e08fa2098e6f3953e1664e48)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #19 pc 00037225 /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libexample-libd.so (android_main+120) (BuildId: 4c5f14a9a7adb7e2e08fa2098e6f3953e1664e48)
2022-07-02 17:39:26.324 12645-12645/? A/DEBUG: #20 pc 000749ed /data/app/~~IRo8JlwyOmHUsytNbPh6tw==/com.monkey.sample.demo02-CPS8Ij_uUpM4Mf_DOwoxXA==/lib/arm/libexample-libd.so (BuildId: 4c5f14a9a7adb7e2e08fa2098e6f3953e1664e48)
2022-07-02 17:39:26.339 1880-12649/? W/ActivityTaskManager: Force finishing activity com.monkey.sample.demo02/com.monkey.sample.VulkanActivity
2022-07-02 17:39:26.377 1880-3562/? W/InputManager-JNI: Input channel object 'fd654a2 com.monkey.sample.demo02/com.monkey.sample.VulkanActivity (client)' was disposed without first being removed with the input manager!
2022-07-02 17:39:26.382 1880-7969/? W/InputManager-JNI: Input channel object 'Letterbox_left_ActivityRecord{19167eb u0 com.monkey.sample.demo02/com.monkey.sample.VulkanActivity t244} (client)' was disposed without first being removed with the input manager!
2022-07-02 17:39:26.382 1880-7969/? W/InputManager-JNI: Input channel object 'Letterbox_top_ActivityRecord{19167eb u0 com.monkey.sample.demo02/com.monkey.sample.VulkanActivity t244} (client)' was disposed without first being removed with the input manager!
2022-07-02 17:39:26.382 1880-7969/? W/InputManager-JNI: Input channel object 'Letterbox_right_ActivityRecord{19167eb u0 com.monkey.sample.demo02/com.monkey.sample.VulkanActivity t244} (client)' was disposed without first being removed with the input manager!
2022-07-02 17:39:26.382 1880-7969/? W/InputManager-JNI: Input channel object 'Letterbox_bottom_ActivityRecord{19167eb u0 com.monkey.sample.demo02/com.monkey.sample.VulkanActivity t244} (client)' was disposed without first being removed with the input manager!
2022-07-02 17:39:26.382 1880-1908/? W/InputDispatcher: Letterbox_left_ActivityRecord{19167eb u0 com.monkey.sample.demo02/com.monkey.sample.VulkanActivity t244} has FLAG_SLIPPERY. Please report this in b/157929241
2022-07-02 17:39:26.445 1880-7969/? W/WindowManager: Failed to deliver inset state change to w=Window{fd654a2 u0 com.monkey.sample.demo02/com.monkey.sample.VulkanActivity EXITING}
android.os.DeadObjectException
at android.os.BinderProxy.transactNative(Native Method)
at android.os.BinderProxy.transact(BinderProxy.java:571)
at android.view.IWindow$Stub$Proxy.insetsControlChanged(IWindow.java:687)
at com.android.server.wm.WindowState.notifyInsetsControlChanged(WindowState.java:4037)
at com.android.server.wm.InsetsStateController.lambda$notifyPendingInsetsControlChanged$6$InsetsStateController(InsetsStateController.java:552)
at com.android.server.wm.InsetsStateController$$ExternalSyntheticLambda1.run(Unknown Source:2)
at com.android.server.wm.WindowAnimator.executeAfterPrepareSurfacesRunnables(WindowAnimator.java:345)
at com.android.server.wm.RootWindowContainer.performSurfacePlacementNoTrace(RootWindowContainer.java:884)
at com.android.server.wm.RootWindowContainer.performSurfacePlacement(RootWindowContainer.java:822)
at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop(WindowSurfacePlacer.java:177)
at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:126)
at com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement(WindowSurfacePlacer.java:115)
at com.android.server.wm.WindowSurfacePlacer.continueLayout(WindowSurfacePlacer.java:97)
at com.android.server.wm.ActivityTaskManagerService.continueWindowLayout(ActivityTaskManagerService.java:4346)
at com.android.server.wm.ActivityTaskManagerService$LocalService.handleAppDied(ActivityTaskManagerService.java:5932)
at com.android.server.am.ActivityManagerService.handleAppDiedLocked(ActivityManagerService.java:3053)
at com.android.server.am.ActivityManagerService.appDiedLocked(ActivityManagerService.java:3149)
at com.android.server.am.ActivityManagerService$AppDeathRecipient.binderDied(ActivityManagerService.java:1441)
at android.os.IBinder$DeathRecipient.binderDied(IBinder.java:314)
at android.os.BinderProxy.sendDeathNotice(BinderProxy.java:685)
2022-07-02 17:39:26.460 1880-2186/? W/InputManager-JNI: Input channel object 'Letterbox_left_ActivityRecord{19167eb u0 com.monkey.sample.demo02/com.monkey.sample.VulkanActivity t244 f} isExiting} (client)' was disposed without first being removed with the input manager!
2022-07-02 17:39:26.460 1880-2186/? W/InputManager-JNI: Input channel object 'Letterbox_top_ActivityRecord{19167eb u0 com.monkey.sample.demo02/com.monkey.sample.VulkanActivity t244 f} isExiting} (client)' was disposed without first being removed with the input manager!
2022-07-02 17:39:26.460 1880-2186/? W/InputManager-JNI: Input channel object 'Letterbox_right_ActivityRecord{19167eb u0 com.monkey.sample.demo02/com.monkey.sample.VulkanActivity t244 f} isExiting} (client)' was disposed without first being removed with the input manager!
2022-07-02 17:39:26.460 1880-2186/? W/InputManager-JNI: Input channel object 'Letterbox_bottom_ActivityRecord{19167eb u0 com.monkey.sample.demo02/com.monkey.sample.VulkanActivity t244 f} isExiting} (client)' was disposed without first being removed with the input manager!
2022-07-02 17:39:26.841 1880-2185/? W/ActivityTaskManager: Activity top resumed state loss timeout for ActivityRecord{19167eb u0 com.monkey.sample.demo02/com.monkey.sample.VulkanActivity t-1 f}}

module 'zzip-zlib-config' not found

OS: macOS Big Sur 11.4

problem detail

it seems like the problem of zzip-zlib-config module. How can i install that module, use brew?

log

-- Checking for module 'zzip-zlib-config'
--   No package 'zzip-zlib-config' found
-- Found ZLIB: optimized;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/lib/libz.tbd;debug;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk/usr/lib/libz.tbd
-- Checking for module 'minizip'
--   Found minizip, version 1.2.11
INFO RT-extension not found. glTF import/export will be built without Open3DGC-compression.
-- Enabled importer formats: 3DS COLLADA OBJ FBX X GLTF
-- Disabled importer formats: AMF AC ASE ASSBIN ASSXML B3D BVH DXF CSM HMP IRRMESH IRR LWO LWS MD2 MD3 MD5 MDC MDL NFF NDO OFF OGRE OPENGEX PLY MS3D COB BLEND IFC XGL Q3D Q3BSP RAW SIB SMD STL TERRAGEN 3D X3D 3MF MMD STEP
-- Enabled exporter formats: GLTF
-- Disabled exporter formats: 3DS ASSBIN COLLADA OBJ OPENGEX PLY FBX STL X X3D 3MF STEP
-- Configuring done
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.

Why DVKRingBuffer set bufferOffset = 0, but not allocation size, when allocation is going to exceed the bufferSize?

The ring buffer is defined as:

    class DVKRingBuffer
    {
        uint64 AllocateMemory(uint64 size)
        {
            uint64 allocationOffset = Align<uint64>(bufferOffset, minAlignment);

            if (allocationOffset + size <= bufferSize)
            {
                bufferOffset = allocationOffset + size;
                return allocationOffset;
            }

            bufferOffset = 0;
            return bufferOffset;
        }

When allocation is going to exceed the bufferSize allocationOffset + size > bufferSize, why bufferOffset = 0; but not bufferOffset = size? I think the latter is the right one, meaning that you reset your allocation to the start of inner buffer, and you have allocate size memory.

I think this is right:

    class DVKRingBuffer
    {
        uint64 AllocateMemory(uint64 size)
        {
            uint64 allocationOffset = Align<uint64>(bufferOffset, minAlignment);

            if (allocationOffset + size <= bufferSize)
            {
                bufferOffset = allocationOffset + size;
                return allocationOffset;
            }

            bufferOffset = size;
            return 0;
        }

Release Monkey project crashes with Visual Studio Win32

Inline function expansion must be disabled for the Monkey project, or the will examples crash. Probably due to the windows intrinsic functions used for the monkey project. Also, the windows intrinsic functions wont compile with an Mingw64 project.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.