mirror of
https://github.com/dpogue/CMake-MetalShaderSupport.git
synced 2025-04-07 14:29:36 +00:00
Get rid of the ShaderFull failed experiment
This commit is contained in:
parent
49220f7dfa
commit
4a6942f105
3 changed files with 0 additions and 48 deletions
example
|
@ -4,7 +4,6 @@
|
|||
|
||||
if(CMAKE_Metal_COMPILER)
|
||||
add_subdirectory(ShaderBase)
|
||||
#add_subdirectory(ShaderFull)
|
||||
|
||||
if(APPLE)
|
||||
add_subdirectory(ExampleApp)
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
/*
|
||||
See LICENSE.txt for this sample’s licensing information.
|
||||
|
||||
Abstract:
|
||||
Implementation of a user function compiled
|
||||
as an override for a dynamic library.
|
||||
*/
|
||||
|
||||
#include <metal_stdlib>
|
||||
|
||||
using namespace metal;
|
||||
|
||||
// This function gets compiled and built
|
||||
// into a dynamic library when the user
|
||||
// presses the `Compile` button in the sample
|
||||
namespace AAPLUserDylib
|
||||
{
|
||||
float4 getFullScreenColor(float4 inColor)
|
||||
{
|
||||
const float3 kRec709Luma =
|
||||
float3(0.2126, 0.7152, 0.0722);
|
||||
half grey =
|
||||
(half)dot(inColor.rgb, kRec709Luma);
|
||||
return float4(grey, grey, grey, 1.0);
|
||||
}
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
||||
# file LICENCE.txt or https://cmake.org/licensing for details.
|
||||
|
||||
add_library(ShaderFull MODULE
|
||||
AAPLUserCompiledFunction.metal
|
||||
)
|
||||
|
||||
target_link_libraries(ShaderFull
|
||||
PUBLIC
|
||||
ShaderBase
|
||||
)
|
||||
|
||||
set_target_properties(ShaderFull PROPERTIES
|
||||
XCODE_PRODUCT_TYPE com.apple.product-type.metal-library
|
||||
XCODE_ATTRIBUTE_MTL_LANGUAGE_REVISION Metal21
|
||||
SUFFIX ".metallib"
|
||||
PREFIX ""
|
||||
XCODE_ATTRIBUTE_MTL_FAST_MATH "YES"
|
||||
XCODE_ATTRIBUTE_MTL_ENABLE_DEBUG_INFO[variant=Debug] "INCLUDE_SOURCE"
|
||||
XCODE_ATTRIBUTE_MTL_ENABLE_DEBUG_INFO[variant=RelWithDebInfo] "INCLUDE_SOURCE"
|
||||
)
|
Loading…
Add table
Reference in a new issue