Get rid of the ShaderFull failed experiment

This commit is contained in:
Darryl Pogue 2024-06-02 02:12:37 -07:00
parent 49220f7dfa
commit 4a6942f105
No known key found for this signature in database
GPG key ID: CB824715C3E6FD41
3 changed files with 0 additions and 48 deletions

View file

@ -4,7 +4,6 @@
if(CMAKE_Metal_COMPILER)
add_subdirectory(ShaderBase)
#add_subdirectory(ShaderFull)
if(APPLE)
add_subdirectory(ExampleApp)

View file

@ -1,26 +0,0 @@
/*
See LICENSE.txt for this samples 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);
}
}

View file

@ -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"
)