Skip to content

Commit

Permalink
Renamed all FillBufferByte4 Metal shader binary files from *.h to *.inl.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBanana committed Aug 24, 2023
1 parent fe62524 commit 8370e9a
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions sources/Renderer/Metal/Shader/Builtin/Compile.command
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ fi

# Convert shader byte code into C header files
for SDK in ${METAL_SDKS[@]}; do
python3 "$HEX_CONVERSION_SCRIPT" FillBufferByte4.${SDK}.metallib -offsets cxx > FillBufferByte4.${SDK}.metallib.bin.h
python3 "$HEX_CONVERSION_SCRIPT" FillBufferByte4.${SDK}.metallib -len -paren > FillBufferByte4.${SDK}.metallib.len.h
python3 "$HEX_CONVERSION_SCRIPT" FillBufferByte4.${SDK}.metallib -offsets cxx > FillBufferByte4.${SDK}.metallib.bin.inl
python3 "$HEX_CONVERSION_SCRIPT" FillBufferByte4.${SDK}.metallib -len -paren > FillBufferByte4.${SDK}.metallib.len.inl
done

echo Done
12 changes: 6 additions & 6 deletions sources/Renderer/Metal/Shader/Builtin/MTBuiltin.mm
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@
const char* g_metalLibFillBufferByte4 =
(
#if TARGET_OS_SIMULATOR != 0
# include "FillBufferByte4.iphonesimulator.metallib.bin.h"
# include "FillBufferByte4.iphonesimulator.metallib.bin.inl"
#elif TARGET_OS_IPHONE != 0
# include "FillBufferByte4.iphoneos.metallib.bin.h"
# include "FillBufferByte4.iphoneos.metallib.bin.inl"
#else
# include "FillBufferByte4.macosx.metallib.bin.h"
# include "FillBufferByte4.macosx.metallib.bin.inl"
#endif
);

const std::size_t g_metalLibFillBufferByte4Len =
(
#if TARGET_OS_SIMULATOR != 0
# include "FillBufferByte4.iphonesimulator.metallib.len.h"
# include "FillBufferByte4.iphonesimulator.metallib.len.inl"
#elif TARGET_OS_IPHONE != 0
# include "FillBufferByte4.iphoneos.metallib.len.h"
# include "FillBufferByte4.iphoneos.metallib.len.inl"
#else
# include "FillBufferByte4.macosx.metallib.len.h"
# include "FillBufferByte4.macosx.metallib.len.inl"
#endif
);

Expand Down

0 comments on commit 8370e9a

Please sign in to comment.