Aqoole_Hateenaの技術日記

vulkan+raytraceで色々描いてます

2021-12-01から1ヶ月間の記事一覧

Android NDKを用いたC++でのtouch位置取得方法

android_main()でコールバック関数の登録 android_appにinput eventが通知された際に呼び出されるコールバック関数を登録する。 int32_t handle_input(struct android_app* app, AInputEvent* inputEvent) { //define app process } void android_main(struc…

Bufferにデータをコピーする方法について

サンプルコード git hubで公開されている、android + vulkanでのbufferにデータをコピーするの部分について考察してみた。 android-vulkan-tutorials/tutorial05_triangle at master · googlesamples/android-vulkan-tutorials · GitHub サンプルとしては以…

main loopのsynchronization考察

サンプルコード git hubで公開されている、android + vulkanでのsynchronizationの部分について考察してみた。 android-vulkan-tutorials/tutorial05_triangle at master · googlesamples/android-vulkan-tutorials · GitHubmain loopの関数は以下 bool Vulk…

Image Layout Transitionsについて

Image Layout Transitions memory dependenciesの例としてImage Layout Transitions*1がある。 Image Layouts 仕様書にはこのように書かれている。Vulkan® 1.2.202 - A Specification (with all registered Vulkan extensions) Images are stored in impleme…

synchronizationとdependenciesについて

Synchronization 仕様書にはこのように書かれている。Vulkan® 1.2.202 - A Specification (with all registered Vulkan extensions) Synchronization of access to resources is primarily the responsibility of the application in Vulkan. The order of e…

BuffersとBuffer Viewsについて

Buffersについて 仕様書によるとVulkan® 1.2.202 - A Specification (with all registered Vulkan extensions) Vulkan supports two primary resource types: buffers and images. Resources are views of memory with associated formatting and dimensiona…

ImageとImageViewについて

Imageについて 仕様書によるとVulkan® 1.2.202 - A Specification (with all registered Vulkan extensions) Images represent multidimensional - up to 3 - arrays of data which can be used for various purposes (e.g. attachments, textures), by bind…

Render Pass, SubpassとFramebufferについて

Render Passについて 仕様書には次のように書かれている。 Vulkan® 1.2.202 - A Specification (with all registered Vulkan extensions) Draw commands must be recorded within a render pass instance. Each render pass instance defines a set of image…

Vulkan Surface作成 on Android

Surfaceとは "Vulkan® 1.2.202 - A Specification (with all registered Vulkan extensions)"内で SurfaceはWSI(Window System Integration)の章の見出しのひとつのWSI Surfaceとして紹介されている。 つまりSurfaceとはVulkanのWindow Systemの扱い方である…