Comments (5)
Here are the fixes:
g_caps.limits.maxTextureSize = m_device.supportsFamily( (MTLGPUFamily)1003 /* iOS_GPUFamily3_v1 */) ? 16384 : 8192;
g_caps.supported |= m_device.supportsFamily( (MTLGPUFamily)1003 /* MTLGPUFamily_iOS_GPUFamily3_v1 */)
? BGFX_CAPS_DRAW_INDIRECT
: 0
;
g_caps.supported |= m_device.supportsFamily( (MTLGPUFamily)1004 /* MTLGPUFamily_iOS_GPUFamily4_v1 */)
? BGFX_CAPS_TEXTURE_CUBE_ARRAY
: 0
;
g_caps.supported |= m_device.supportsFamily( (MTLGPUFamily)2002 /* MTLGPUFamily_macOS_GPUFamily1_v2 */)
? BGFX_CAPS_DRAW_INDIRECT
: 0
;
if (m_macOS11Runtime
|| [m_device supportsFamily:(MTLGPUFamily)1003 /*MTLGPUFamilyApple3*/]
|| [m_device supportsFamily:(MTLGPUFamily)3002 /*MTLGPUFamilyCommon2*/])
{
const uint32_t cmpFunc = (_flags&BGFX_SAMPLER_COMPARE_MASK)>>BGFX_SAMPLER_COMPARE_SHIFT;
m_samplerDescriptor.compareFunction = 0 == cmpFunc
? MTLCompareFunctionNever
: s_cmpFunc[cmpFunc]
;
}
from bgfx.
Good catch, Just submit PR with fixes.
from bgfx.
@bkaradzic my codebase isn't in a place where I can easily submit PRs unfortunately, so I'm just passing along the info for now :)
from bgfx.
Metal feature set tables
https://developer.apple.com/metal/Metal-Feature-Set-Tables.pdf
from bgfx.
@bkaradzic I think c43c447 and using the MTLGPUFamily
enum values directly made the compilation fail on older versions of Xcode.
Would it make sense to add Xcode version detection like in MoltenVK (version macros defined here)?
from bgfx.
Related Issues (20)
- Examples crash on startup on Ubuntu 22.04 HOT 7
- A D3D11 debuglayer warning in 00-helloworld example project.
- setViewMode sequential mode seems to be broken HOT 2
- bgfx:blit on texture arrays does not handle layers past the first one consistently
- [vulkan] Synchronization issue: vkAcquireNextImage uses a semaphore which is in use. HOT 4
- [vulkan] example-07-callback does not work well with a tiling wm.
- Dxgi::shutdown() asserts on 4 GPUs host
- Example 08-update: Non 1x1 texel block size ImageFormats get copied incorrectly from buffer to image in Vulkan. HOT 2
- Metal renderer compiler error in XCode version 15.0 and 15.1 HOT 5
- Dynamic vertex buffer getting overwritten by update after being submitted HOT 3
- A few shutdown & re-init bugs HOT 2
- [Android]The same fragment code has a significant precision difference when executed on iOS and Android.
- Using OpenGL as the renderer leads to TDR(0x0000116) HOT 8
- [Android] `ALooper_pollAll` is deprecated in r27
- Shaders not loading (Windows) HOT 3
- Crashes on Wayland with nvidia driver 560.35.03 HOT 11
- Genie Generating Incorrect Linker Flags for MacOS and Android Building
- Crash using Metal renderer when using RGB5A1 textures
- [Direct3D12] [Suggested fix] Potentially invalid use of the API in feature support check. HOT 1
- Regression iOS18 in Chrome and Safari which broke all offscreen rendering
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 bgfx.