📄 fp_apply_force.h
字号:
const char* fp_str_apply_force="!!FP1.0\n"\"# cgc version 1.3.0001, build date Aug 4 2004 10:01:10\n"\"# command line args: -profile fp30\n"\"# source file: apply_force.cg\n"\"# source file: ./sph.cg\n"\"#vendor NVIDIA Corporation\n"\"#version 1.0.02\n"\"#profile fp30\n"\"#program main\n"\"#semantic main.attr_rect : TEXUNIT0\n"\"#semantic main.timestep\n"\"#semantic MASS\n"\"#semantic SMOOTHING_LENGTH\n"\"#semantic VISCOSITY\n"\"#var float index : $vin.TEX0 : TEX0 : 0 : 1\n"\"#var samplerRECT attr_rect : TEXUNIT0 : texunit 0 : 1 : 1\n"\"#var float timestep : : : 2 : 1\n"\"#var float3 result : $vout.COL : COL : 3 : 1\n"\"#var float MASS : : : -1 : 0\n"\"#var float SMOOTHING_LENGTH : : : -1 : 0\n"\"#var float VISCOSITY : : : -1 : 0\n"\"#default MASS = 0.00020543\n"\"#default SMOOTHING_LENGTH = 0.01\n"\"#default VISCOSITY = 0.1\n"\"DECLARE timestep;\n"\"MOVR R0.x, f[TEX0];\n"\"MOVR R0.y, {1}.x;\n"\"TEX R0.xyz, R0, TEX0, RECT;\n"\"MOVR R1.x, f[TEX0];\n"\"MOVR R1.y, {2}.x;\n"\"TEX R1.xyz, R1, TEX0, RECT;\n"\"MADR R1.xyz, -R0, {1.1}.x, R1;\n"\"ADDR R1.xyz, R1, {0, -9.8}.xxyw;\n"\"MADR o[COLR].xyz, R1, timestep.x, R0;\n"\"END\n"\"# 9 instructions, 2 R-regs, 0 H-regs\n"\"";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -