Git Product home page Git Product logo

vulkan-samples-deprecated's Introduction

The Official Khronos Vulkan Samples Repository

This repository provides samples for Vulkan developers. These samples are useful to get started with, and learn about the Vulkan graphics API.

See REQUIREMENTS for system/tool requirements.

See BUILDING for information about building the code.

See CONTRIBUTING for information about contributing.


Platform Build Status
Windows Windows Build status
Linux Linux Build Status
MacOS Mac Build Status
Android Android Build Status

vulkan-samples-deprecated's People

Contributors

billhollings avatar janharaldfredriksen-arm avatar jimdose avatar mark-lunarg avatar michaelworcester avatar mre4ce avatar oddhack avatar papostolou 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  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

vulkan-samples-deprecated's Issues

Multiview UBO copies are seemed to be broken

The function here looks wrong:
https://github.com/KhronosGroup/Vulkan-Samples/blob/master/samples/apps/atw/scenes/scene_perf.h#L1706

The UBO buffers are being copied from a wrong memory in case of multiview. I think that it should look like this:

static void ksPerfScene_UpdateBuffers( ksGpuCommandBuffer * commandBuffer, ksPerfScene * scene, const ksViewState * viewState, const int eye )
{
ksMatrix4x4f * sceneMatrices = NULL;
ksGpuBuffer * sceneMatricesBuffer = ksGpuCommandBuffer_MapBuffer( commandBuffer, &scene->sceneMatrices, (void **)&sceneMatrices );
const int count = ( eye == 2 ) ? 2 : 1;
const int offset = ( eye == 2) ? 0 : eye;

memcpy( sceneMatrices + 0 * count, &viewState->viewMatrix[offset], count * sizeof( ksMatrix4x4f ) );
memcpy( sceneMatrices + 1 * count, &viewState->projectionMatrix[offset], count * sizeof( ksMatrix4x4f ) );
ksGpuCommandBuffer_UnmapBuffer( commandBuffer, &scene->sceneMatrices, sceneMatricesBuffer, KS_GPU_BUFFER_UNMAP_TYPE_COPY_BACK );
}

atw_vulkan: Invalid image blit offsets

In samples/apps/atw/atw_vulkan.c, srcOffsets[1].z and dstOffsets[1].z are being set to 0 on vkCmdBlitImage(). However, according to the spec:

If the calling command’s srcImage is of type VK_IMAGE_TYPE_1D or VK_IMAGE_TYPE_2D, then srcOffset[0].z must be 0 and srcOffset[1].z must be 1.
[...]
If the calling command’s dstImage is of type VK_IMAGE_TYPE_1D or VK_IMAGE_TYPE_2D, then dstOffset[0].z must be 0 and dstOffset[1].z must be 1.

Lost response after showing one frame on Android 7

The app got stuck after showing one frame on Android 7 (MI 5, MIUI 8)
log:
com.vulkansamples.atw_vulkan V/atw: --------------------------------
/com.vulkansamples.atw_vulkan V/atw: OS : Android 7.1.1 (18)
com.vulkansamples.atw_vulkan V/atw: CPU : Qualcomm Technologies, Inc MSM8953Pro - AArch64 Processor rev 4 (aarch64)
com.vulkansamples.atw_vulkan V/atw: GPU : Adreno (TM) 506
com.vulkansamples.atw_vulkan V/atw: Vulkan : 1.0.20
com.vulkansamples.atw_vulkan V/atw: Display : 1920 x 1080 - 60 Hz (fullscreen)
com.vulkansamples.atw_vulkan V/atw: Eye Img : 1024 x 1024 - 1x MSAA
com.vulkansamples.atw_vulkan V/atw: --------------------------------
com.vulkansamples.atw_vulkan W/Adreno-GSL: <gsl_ldd_control:467>: ioctl fd 52 code 0xc040094a (IOCTL_KGSL_GPU_COMMAND) failed: errno 71 Protocol error
com.vulkansamples.atw_vulkan W/Adreno-GSL: <log_gpu_snapshot:376>: panel.gpuSnapshotPath is not set.not generating user snapshot
com.vulkansamples.atw_vulkan I/System: Daemon delayGCRequest, sDelayGCRequest=true, delay=false, sPendingGCRequest=false

apps/atw/* fail to build with recent GCC versions on Linux

I tried building the Vulkan-Samples with a recent GCC version (6.2.0 as shipped by Debian Stretch) but gut a failure for the binaries in apps/atw:

/tmp/test-vk/Vulkan-Samples/samples/apps/atw/atw_cpu_dsp.c: In function ‘Signal_Wait’:
/tmp/test-vk/Vulkan-Samples/samples/apps/atw/atw_cpu_dsp.c:6262:20: error: storage size of ‘ts’ isn’t known
    struct timespec ts;
                    ^~

The problem seems to be, that timespec is not defined with -std=c99. The patch at https://gist.github.com/TheRealCuran/08a3a62c8c03bebb38f4c0cd43120fad fixes this issue for me (sorry for the Gist mess, but apparently GitHub doesn't like patches).

Issue running atw_vulkan.exe demo

Hello,

Here is the output when I'm launching the demo :

Device Name          : AMD Radeon R9 200 Series
Device Type          : discrete GPU
Vendor ID            : XxXXXX
Device ID            : XxXXXX
Driver Version       : 1.2.0
API Version          : 1.0.17
Queue Families       : 0 = graphics compute transfer (1 queues, 2 priorities)
                       1 = compute transfer (2 queues, 2 priorities)
                       2 = transfer (2 queues, 2 priorities)
Required work queue family not supported.

No capable Vulkan physical device found.'atw_vulkan.exe' (Win32)

Sould I understand that my device is not compatible ?
If not, does it mean the code is developped for specific hardware ?

Thanks you.

dlsym: Used without proper error handling.

In atw_vulkan.c, at least, dlsym is used as though it's guarantied the symbol being looked up exists. This may not be correct as it assumes that the Vulkan Loader was built and installed correctly.

To be correct dlsym should be wrapped in dlerror calls and given the usage here it may make sense to put this handling into a function that reports error and exits on symbol not found.

There are no samples

Vulkan 1.0 documentation has been released but this repo is still empty. Why so?

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.