既存の D3D アプリケーションのレンダリング結果に、 自前のポスト処理/オーバーレイを付加したり、スクリーンショット撮ったりする (FXAA とかああいう) のはどーやってるの?
逆順に説明すると、以下のようになる:
;(function ($, window) { | |
var intervals = {}; | |
var removeListener = function(selector) { | |
if (intervals[selector]) { | |
window.clearInterval(intervals[selector]); | |
intervals[selector] = null; | |
} |
import os,sys,io | |
from struct import pack,unpack | |
if len(sys.argv) < 3: | |
print("not enough input file") | |
exit(-1) | |
class VMD: | |
def __init__(self,fn): |
import os,sys | |
import subprocess | |
if len(sys.argv) <2: | |
exit() | |
rootdir = sys.argv[1] | |
dedir = (rootdir if rootdir[-1] not in ["\\",'/'] else rootdir[0:-1])+"_denoised" | |
try: | |
os.mkdir(dedir) |
shaderPack = r'C:\ProgramData\Redshift\Data\Redshift1.dat' | |
from struct import unpack | |
import os | |
shaderdataFloder = r'Redshift1' | |
os.makedirs(shaderdataFloder,exist_ok=True) | |
def dint(b): | |
return unpack("i",b)[0] |
""" | |
from waigua.Util import * | |
src = liezao.malloc(8) | |
dst = liezao.malloc(8) | |
liezao.doCall(readU64(0x144B51330),dst) | |
liezao.doCall(readU64(0x144B50FF8),src,"3a85aa1edaae3aaa5aaafaaa5aa5ea7a7aae5aaa3caadaa5feaafaaadaaaadaaaadddaaa6daa5a6e2aadacdabada3aaa") | |
liezao.doCall(0x140EFEB40,src,dst) | |
""" | |
hwid = open("md.hw").read().strip() | |
sbox = [ |
using System; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
using System.Linq; | |
using System.Runtime.Serialization; | |
using System.IO; | |
//partially from https://devblogs.microsoft.com/premier-developer/managed-object-internals-part-4-fields-layout/ | |
namespace Main | |
{ | |
class InspectorHelper |
def serialize_ordinal(n): | |
frame = '=%s#' | |
body = '' | |
def get_chunk(level): | |
if level < 2: | |
return 1 | |
return 64 * (128 ** (level-2)) |
#if UNITY_EDITOR | |
using UnityEngine; | |
using UnityEditor; | |
using CustomAvatar; | |
using System; | |
using System.Linq; | |
using System.Reflection; | |
using System.Collections.Generic; | |
public class DBTransfer : MonoBehaviour |
replace all <ConfigurationType>DynamicLibrary</ConfigurationType>
with <ConfigurationType>StaticLibrary</ConfigurationType>
in *.vcxproj
#define Py_NO_ENABLE_SHARED
#define MS_NO_COREDLL
``` in pyconfig.h
remove `Py_ENABLE_SHARED` in pythoncore.vcxproj
manual set MT and /Zl in all vcxproj.