Metal: Fixed occlusion queries and depth texture data, added HDR10 and unretained command buffers. Closes #2356, #2017, #1827, #2974, #3642. (#4060)

This commit is contained in:
Branimir Karadžić
2026-10-17 00:10:37 -07:00
committed by GitHub
parent 32966cfc7c
commit 227eac0d75
11 changed files with 559 additions and 72 deletions

View File

@@ -139,6 +139,9 @@ function bgfxProjectBase(_kind, _defines)
"-Wno-microsoft-const-init", -- default initialization of an object of const type '' without a user-provided default constructor is a Microsoft extension
}
configuration { "ios* or tvos* or xros*" }
buildoptions { "-x objective-c++" }
configuration { "osx*" }
buildoptions { "-x objective-c++" } -- additional build option for osx
linkoptions {

View File

@@ -403,9 +403,9 @@ function exampleProjectDefaults()
kind "ConsoleApp"
linkoptions {
"-framework CoreFoundation",
"-framework CoreGraphics",
"-framework Foundation",
"-framework IOKit",
"-framework OpenGLES",
"-framework QuartzCore",
"-framework UIKit",
"-weak_framework Metal",
@@ -591,6 +591,7 @@ or _OPTIONS["with-combined-examples"] then
, "52-layered"
, "53-sky2"
, "54-s2h"
, "55-hdr10"
)

View File

@@ -149,11 +149,15 @@ project ("geometryv")
kind "ConsoleApp"
linkoptions {
"-framework CoreFoundation",
"-framework CoreGraphics",
"-framework Foundation",
"-framework IOKit",
"-framework OpenGLES",
"-framework QuartzCore",
"-framework UIKit",
"-weak_framework Metal",
"-weak_framework VideoToolbox",
"-weak_framework CoreMedia",
"-weak_framework CoreVideo",
}
configuration { "xcode4", "ios" }

View File

@@ -209,11 +209,15 @@ project "texturev"
kind "ConsoleApp"
linkoptions {
"-framework CoreFoundation",
"-framework CoreGraphics",
"-framework Foundation",
"-framework IOKit",
"-framework OpenGLES",
"-framework QuartzCore",
"-framework UIKit",
"-weak_framework Metal",
"-weak_framework VideoToolbox",
"-weak_framework CoreMedia",
"-weak_framework CoreVideo",
}
configuration { "xcode*", "ios" }