OSX: Added weak framework for linking Metal.
This commit is contained in:
parent
b5f3cc34f7
commit
caf305ceb1
@ -83,9 +83,9 @@ function bgfxProject(_name, _kind, _defines)
|
||||
configuration { "osx" }
|
||||
linkoptions {
|
||||
"-framework Cocoa",
|
||||
"-framework Metal",
|
||||
"-framework QuartzCore",
|
||||
"-framework OpenGL",
|
||||
"-weak_framework Metal",
|
||||
}
|
||||
|
||||
configuration { "not nacl" }
|
||||
|
@ -326,9 +326,9 @@ function exampleProject(_name)
|
||||
configuration { "osx" }
|
||||
linkoptions {
|
||||
"-framework Cocoa",
|
||||
"-framework Metal",
|
||||
"-framework QuartzCore",
|
||||
"-framework OpenGL",
|
||||
"-weak_framework Metal",
|
||||
}
|
||||
|
||||
configuration { "ios* or tvos*" }
|
||||
@ -336,10 +336,10 @@ function exampleProject(_name)
|
||||
linkoptions {
|
||||
"-framework CoreFoundation",
|
||||
"-framework Foundation",
|
||||
"-framework Metal",
|
||||
"-framework OpenGLES",
|
||||
"-framework UIKit",
|
||||
"-framework QuartzCore",
|
||||
"-weak_framework Metal",
|
||||
}
|
||||
|
||||
configuration { "xcode4", "ios" }
|
||||
|
@ -329,10 +329,10 @@ namespace bgfx { namespace mtl
|
||||
: m_metalLayer(NULL)
|
||||
, m_backBufferPixelFormatHash(0)
|
||||
, m_maxAnisotropy(1)
|
||||
, m_uniformBufferIndex(0)
|
||||
, m_numWindows(1)
|
||||
, m_rtMsaa(false)
|
||||
, m_drawable(NULL)
|
||||
, m_uniformBufferIndex(0)
|
||||
{
|
||||
}
|
||||
|
||||
@ -1231,7 +1231,7 @@ namespace bgfx { namespace mtl
|
||||
|
||||
OcclusionQueryMTL m_occlusionQuery;
|
||||
|
||||
Buffer m_uniformBuffer;
|
||||
Buffer m_uniformBuffer;
|
||||
Buffer m_uniformBuffers[UNIFORM_BUFFER_COUNT];
|
||||
uint32_t m_uniformBufferVertexOffset;
|
||||
uint32_t m_uniformBufferFragmentOffset;
|
||||
|
Loading…
Reference in New Issue
Block a user