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
1c1 | |
< X11+ | |
--- | |
> X11- | |
3,5c3,5 | |
< autocmd+ | |
< balloon_eval+ | |
< browse+ | |
--- | |
> autocmd- |
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 <iostream> | |
#include <fstream> | |
/*! | |
@param[in] path path of a file | |
@return byte size of a file (return -1 when file cannnot open) | |
*/ | |
int filesize(char const * path) | |
{ | |
std::ifstream fin(path, std::ios::in | std::ios::ate); |
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 _USE_MATH_DEFINES | |
#include <cmath> | |
#include <iostream> | |
using namespace std; | |
class angle; | |
class radian; | |
// angle(度数法)とradian(弧度法)の実装がほぼ同じなため |
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
set path& | |
set path+=C:/Program\ Files\ (x86)/Microsoft\ Visual\ Studio\ 12.0/VC/include | |
set path+=C:/Program\ Files\ (x86)/Windows\ Kits/8.1/Include/shared | |
set path+=C:/Program\ Files\ (x86)/Windows\ Kits/8.1/Include/um | |
set path+=C:/Program\ Files\ (x86)/Windows\ Kits/8.1/Include/winrt |
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 <iostream> | |
#include <random> | |
#include <chrono> | |
#include <limits> | |
#include <vector> | |
#include <functional> | |
#include <cmath> | |
using namespace std; |
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
// IDXGIFactory7は生成済み | |
ComPtr<IDXGIFactory7> p_factory; | |
// 実際にはグローバル変数ではなく,何らかのメンバ変数など | |
D3D_FEATURE_LEVEL minimum_feature_level = D3D_FEATURE_LEVEL_12_0; | |
ComPtr<ID3D12Device6> p_device; | |
ComPtr<IDXGIAdapter4> p_adapter; | |
bool selectAdapter() | |
{ |
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
cbuffer model | |
{ | |
float4x4 world; | |
}; | |
float4 VS(float4 position : POSITION) : SV_POSITION | |
{ | |
return mul(position, world); | |
// return mul(world, position); | |
} |
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
cbuffer model | |
{ | |
float4x3 world; | |
}; | |
float4 VS(float4 position : POSITION) : SV_POSITION | |
{ | |
return float4(mul(position, world), 1.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
// | |
// Generated by Microsoft (R) HLSL Shader Compiler 10.0.10011.16384 | |
// | |
// | |
// Buffer Definitions: | |
// | |
// cbuffer model | |
// { | |
// | |
// float4x3 world; // Offset: 0 Size: 48 |
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 <Windows.h> | |
#include <cstdlib> | |
#include <vector> | |
void * operator new(std::size_t size) | |
{ | |
OutputDebugStringA("Original New\n"); | |
return malloc(size); | |
} |
OlderNewer