allocate.br
来自「用于GPU通用计算的编程语言BrookGPU 0.4」· BR 代码 · 共 25 行
BR
25 行
// read_write.br// A minimal regression test to confirm that// data written to a stream with streamRead// can be retrieved with streamWrite.#include <stdio.h>typedef struct traverser_t { float4 index;//.xy is index into the aTree .zw is index into bTree float3 Translation; float3 Rotationx; float3 Rotationy; float3 Rotationz;}Traverser;int main() { float4 a< 1024,512 >; float4 b< 1024,512 >; float2 c <1024,1>; float2 d <1024,1>; float2 e <1,512>; float2 f <1,512>; return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?