Comments (6)
Note in this case I've explicitly set up the builder ctor to require any params without which the resulting object would make no sense. In the case of Images that's the extent and the format, although even the format is defaulted in the ctor. In the case of buffers it's just the size.
from vulkan-samples.
Hey @jherico, great ideas!
I agree that we are a little bloated in this area. There is an ongoing initiative to simplify the framework. I think i have a branch with a pattern like this on. Just hard to get in as nearly every place in the framework uses the existing interface so there are a lot of places that need changing.
I agree that a builder pattern could simplify how we create images
from vulkan-samples.
I've got a branch that does this partially, built on top of the VMA version update. I'll see if I can whip it into shape and put it up.
from vulkan-samples.
Feel free to request my review when your ready, I'll try be prompt
from vulkan-samples.
@tomadamatkinson it's #906
The current PR just sets up the new builder ctors without removing the old ones, but it does change a few uses inside the framework.
from vulkan-samples.
This sounds similar to what @asuessenbach is working on in #880. We should talk about how this fits into our framework roadmap.
from vulkan-samples.
Related Issues (20)
- Add new sample for VK_KHR_ray_tracing_position_fetch
- clang-format script fails due to objective C files HOT 1
- Disable copyright checks for moved files
- Profiles sample no longer working
- OpenCL interop sample no longer working
- Linux build error of ‘exchange’ is not a member of ‘std’ HOT 2
- Tracking Issue for HLSL shaders
- hello_triangle sample references a retired swapchain
- Code isn't CPP14 compatible anymore
- Link in Command buffers usage readme broken HOT 1
- 16 bit arithmetic sample crashes at startup HOT 3
- Multithreading render passes sample crashes at startup HOT 1
- Missing screenshot is causing error in Antora site build HOT 1
- wait_idle is failing at startup with ERROR_NATIVE_WINDOW_IN_USE_KHR HOT 1
- Validation errors on Subpass example HOT 4
- Add CI step for Antora documentation build
- Clarify or update ARM/vendor specific information
- Build issue: filesystem/src/legacy.cpp no matching function for call to find() HOT 3
- Build Failure (Windows 11, VS 2022) HOT 3
- Missing error handling for unsupported samples on Android
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vulkan-samples.