Conversation
inner-daemons
left a comment
There was a problem hiding this comment.
2 nits, generally looks good
There was a problem hiding this comment.
This would also need a changelog entry just FYI.
But I actually have bigger concerns, which is that I have absolutely zero clue where you got the requirements from. Ctrl+f looking for "multisample` only pops up 3 items in the feature set tables, and the only non-footnote item is "Layered rendering to multisample textures", which seems related but also the limits there don't match what you did at all.
The fact that you referenced "Mac Family 1" also does not inspire confidence because that has been scrubbed for a while now from the tables.
If you can share a link to the archive.org page you were referencing that would be ideal (assuming you were actually looking at such a page).
| // Multisample 2D Array textures are supported on: | ||
| // - Apple Family 3 and higher (A10 chips/iPhone 7 and newer) | ||
| // - Mac Family 1 and higher (All Intel/AMD/Apple Silicon Macs) | ||
| if available!(macos = 10.14, ios = 14.0, tvos = 16.0, visionos = 1.0) { |
There was a problem hiding this comment.
This should also require family_check or supportsFamily will crash.
| // Multisample 2D Array textures are supported on: | ||
| // - Apple Family 3 and higher (A10 chips/iPhone 7 and newer) | ||
| // - Mac Family 1 and higher (All Intel/AMD/Apple Silicon Macs) |
There was a problem hiding this comment.
I'm not seeing anything in the metal feature set tables about multisample 2D array textures. What is the exact feature called?
Also, the metal feature set tables have scrubbed all references of "Mac Family 1" a while ago, so are you looking at some older version of this on the internet archive?
|
Just to be more transparent, my big concern here is that you vibecoded this PR and never bothered to check the references your LLM provided. I hope that's not true though and you can provide the document used. |
|
@inner-daemons i actually hit the same issue when i was looking at the minimum req for this since there's no specific place that connects multisample to gpu family , so i had to do a bit of connecting by myself, so i looked at https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf : |
|
@inner-daemons i looked at MoltenVK since they do also have to target it, it looks like they just support it across the board if it's not TVOS ,https://github.com/KhronosGroup/MoltenVK/blob/c0d41c221b3903519c83753e559452d9a81ee286/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm#L2463 we could do the same as well |
|
@39ali What was the reasoning for this comment? I don't think that the feature set tables are relevant here? And yes i will check on the sources you linked. |
|
@inner-daemons the gist references it, but i do agree it's a bit confusing, i'll fix it according to what we decide to do |
Connections
#8593
Description
add Metal support for
MULTISAMPLE_ARRAYTesting
no tests where added
Squash or Rebase?
Checklist
cargo fmt.taplo format.cargo clippy --tests. If applicable, add:--target wasm32-unknown-unknowncargo xtask testto run tests.CHANGELOG.mdentry.