Giter VIP home page Giter VIP logo

Comments (4)

realitix avatar realitix commented on May 21, 2024

Hello @okuma10, can you show me the code that create this error ?

from vulkan.

okuma10 avatar okuma10 commented on May 21, 2024

Well...I'm not sure if it is something in my code, this is the third time I make a new project and whenever I enable the INFO_BIT , I get that error

But I found I get the error when I make the logical device,
I get the messages, but then I get the same amount of lines in errors
Here is a snippet from the last message line and the first error line in the output:

16, 1, <cdata 'struct VkDebugUtilsMessengerCallbackDataEXT *' 0x000000D411DE8390>, <cdata 'void *' NULL>
From cffi callback <function _external_vkDebugUtilsMessengerCallbackEXT at 0x00000247C2C2EC18>:
Trying to convert the result back to C:
TypeError: an integer is required

but here is my debug report function:

def Debugger(*args):
    print(args)

here is the debug create info, it's a function so instance and function refer to variables passed to it. But function is basically the debug function above:

debug_create_info = VkDebugUtilsMessengerCreateInfoEXT(
            sType=VK_STRUCTURE_TYPE_DEBUG_UTILS_MESSENGER_CREATE_INFO_EXT,
            pNext=None,
            flags=0,
            messageSeverity=VK_DEBUG_UTILS_MESSAGE_SEVERITY_INFO_BIT_EXT|
                            VK_DEBUG_UTILS_MESSAGE_SEVERITY_WARNING_BIT_EXT|
                            VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT,
            messageType=VK_DEBUG_UTILS_MESSAGE_TYPE_GENERAL_BIT_EXT|
                        VK_DEBUG_UTILS_MESSAGE_TYPE_VALIDATION_BIT_EXT |
                        VK_DEBUG_UTILS_MESSAGE_TYPE_PERFORMANCE_BIT_EXT,
            pfnUserCallback=function
    )

    vkCreateDebugUtilsMessengerEXT = vkGetInstanceProcAddr(instance,"vkCreateDebugUtilsMessengerEXT")

    debug_messenger = vkCreateDebugUtilsMessengerEXT(instance,debug_create_info,None)

setting things up obviously works, because I get the message before the errors.

this is my logical device creation

      createInfo = VkDeviceCreateInfo(
                sType=VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO,
                pNext=None,
                flags=0,
                queueCreateInfoCount=len(queues),
                pQueueCreateInfos=queues,
                enabledLayerCount=0,
                ppEnabledLayerNames=None,
                enabledExtensionCount=0,
                ppEnabledExtensionNames=None,
                pEnabledFeatures=None
        )
        self.logical_device = vkCreateDevice(physical_device,createInfo,None)

again everything is fine in the logical device creation, since I get the handle and those messages , if I get args[2].pMessage reports loading of device extensions:

b'Device Extension: VK_KHR_driver_properties (C:\\Windows\\System32\\DriverStore\\FileRepository\\u0357776.inf_amd64_5cb88e05332b51cb\\B357669\\.\\amdvlk64.dll) version 0.0.1'

from vulkan.

realitix avatar realitix commented on May 21, 2024

Hello @okuma10, Can you give me the minimum of code allowing me to reproduce your issue ?
Thanks

from vulkan.

okuma10 avatar okuma10 commented on May 21, 2024

I think I just found the reason for the error, my debug function needed to have a return True at the end.

from vulkan.

Related Issues (20)

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.