Giter VIP home page Giter VIP logo

Comments (3)

ziga-lunarg avatar ziga-lunarg commented on July 23, 2024

You are correct, this is a bug. Thank you for reporting the issue

from vulkan-extensionlayer.

jeremyg-lunarg avatar jeremyg-lunarg commented on July 23, 2024

Reopening because @qbojj wrote the following:

There's still a problem.
If a pipeline was created in another thread during locking of data for writing, that pipeline should be bound, but in current implementation VK_NULL_HANDLE is bound.

if (pipeline == VK_NULL_HANDLE) {
std::unique_lock<std::shared_mutex> lock;
auto& pipelines = vertex_or_mesh_shader->pipelines.GetDataForWriting(lock);
// Ensure that a pipeline for this state wasn't created in another thread between the read lock above and the write lock
if (pipelines.NumEntries() == pipeline_count || pipelines.Find(state_data_key) == pipelines.end()) {
pipeline = CreateGraphicsPipelineForCommandBufferState(data);
pipelines.Add(state_data_key, pipeline);
}
}
data.device_data->vtable.CmdBindPipeline(commandBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, pipeline);

from vulkan-extensionlayer.

jeremyg-lunarg avatar jeremyg-lunarg commented on July 23, 2024

nevermind, the new problem is now in #282

from vulkan-extensionlayer.

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.