mesh.indexFormat = UnityEngine.Rendering.IndexFormat.UInt32;
This file contains hidden or 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
// Unity C# reference source | |
// Copyright (c) Unity Technologies. For terms of use, see | |
// https://unity3d.com/legal/licenses/Unity_Reference_Only_License | |
using System; | |
using System.Linq; | |
using System.Reflection; | |
using UnityEditor; | |
// using UnityEditor; | |
using UnityEngine; |
This file contains hidden or 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
{ | |
// See https://go.microsoft.com/fwlink/?LinkId=733558 | |
// for the documentation about the tasks.json format | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "build", | |
"type": "shell", | |
"command": "meson build --backend vs", | |
"options": { |
This file contains hidden or 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.0.0) | |
PROJECT(em_gl VERSION 0.1.0) | |
LINK_DIRECTORIES( | |
$ENV{VCPKG_ROOT}/installed/x64-windows/lib | |
) | |
FILE(GLOB SRC | |
*.cpp | |
*.h |
This file contains hidden or 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
// | |
// add d3d11 to libs in dub.json | |
// | |
import core.runtime; | |
import core.sys.windows.windows; | |
extern (Windows) | |
{ | |
enum D3D_DRIVER_TYPE | |
{ |
This file contains hidden or 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; | |
public class CubeBar : MonoBehaviour | |
{ | |
[SerializeField, Range(0, 1)] | |
float m_value; | |
// キューブ付ける | |
[SerializeField] |
This file contains hidden or 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
diff --git a/examples/directx11_example/imgui_impl_dx11.cpp b/examples/directx11_example/imgui_impl_dx11.cpp | |
index 0442d78..48e971b 100644 | |
--- a/examples/directx11_example/imgui_impl_dx11.cpp | |
+++ b/examples/directx11_example/imgui_impl_dx11.cpp | |
@@ -547,6 +547,7 @@ void ImGui_ImplDX11_Shutdown() | |
g_hWnd = (HWND)0; | |
} | |
+#ifndef UWP | |
void ImGui_ImplDX11_NewFrame() |
This file contains hidden or 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; | |
using UnityEngine; | |
using UnityEngine.Playables; | |
using UnityEngine.Timeline; | |
public class AlphaBehaviour : PlayableBehaviour | |
{ | |
public float Alpha; | |
} |
This file contains hidden or 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 class Pin | |
{ | |
public static Pin<T> Create<T>(ArraySegment<T> src)where T: struct | |
{ | |
return new Pin<T>(src); | |
} | |
public static Pin<T> Create<T>(T[] src) where T : struct | |
{ | |
return Create(new ArraySegment<T>(src)); | |
} |
This file contains hidden or 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
@echo off | |
FOR /F "TOKENS=1,2,*" %%A IN ('reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\SxS\VS7" /v "15.0"') DO IF "%%A"=="15.0" SET VSPATH=%%C | |
@echo on | |
set CMAKE="%VSPATH%\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" | |
set BUILD_DIR="build_vs2017_uwp_x86" | |
if not exist %BUILD_DIR% mkdir %BUILD_DIR% | |
pushd %BUILD_DIR% | |
%CMAKE% -G "Visual Studio 15 2017" -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0 .. |
NewerOlder