This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Just cat doesn't work correctly for me because of \r\n and \n line endings difference in LFS cache and actual file | |
# So, every line is marked as modified | |
git config diff.lfs.textconv pwsh` -cwa` `'Get-Content` `$args[0]`' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static bool initialized; | |
static Action staticUpdate; | |
public static Task Tween<T>(T startValue, T endValue, float duration, Func<T, T, float, T> function, Action<T> callback, CancellationToken? cToken = null) | |
{ | |
if (!initialized) | |
{ | |
initialized = true; | |
var playerLoop = UnityEngine.LowLevel.PlayerLoop.GetCurrentPlayerLoop(); | |
const int updateSubSystemIndex = 5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEditor; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
public class ReferenceFixTool | |
{ | |
[MenuItem("CONTEXT/ScriptableObject/Fix References")] | |
static void FixReferences(MenuCommand command) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#define COROUTINE_START(line) switch (line) { case 0: | |
#define WAIT_WHILE(condition) return __LINE__; case __LINE__: if (condition) return __LINE__; | |
#define COROUTINE_END default: return -1; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define _CRT_SECURE_NO_WARNINGS | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#include <assert.h> | |
// ******************* | |
// CONTAINERS LIBRARY | |
// ******************* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEditor; | |
using System; | |
using System.IO; | |
using System.Text.RegularExpressions; | |
public class AttributeManager : EditorWindow | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void autoDeserialize(ObjectContext context, AutoSerialisedObject autoSerializedObject, RestoreProcess restoreProcess) | |
{ | |
var cache = getClassReflectionCache(context.type); | |
foreach (var field in cache.fields) | |
{ | |
var serializedField = autoSerializedObject.autoSerialiedFields.Find(item => item.name == field.fieldInfo.Name); | |
if (serializedField.value != null) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required (VERSION 3.8) | |
set(PROJECT_NAME SimpleVulkan) | |
add_executable (${PROJECT_NAME} "main.c") | |
find_package(Vulkan REQUIRED) | |
target_include_directories(${PROJECT_NAME} PRIVATE "./") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <windows.h> | |
#include <gl/GL.h> | |
HDC dc; | |
HGLRC rc; | |
LRESULT CALLBACK WindowProc(HWND hwnd, | |
UINT msg, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <limits.h> | |
#include <assert.h> | |
#include <stdbool.h> | |
typedef uint32_t EId; | |
typedef struct |
NewerOlder