nvcontext.hpp
来自「用于GPU通用计算的编程语言BrookGPU 0.4」· HPP 代码 · 共 54 行
HPP
54 行
// nvcontext.hpp#ifndef NVCONTEXT_H#define NVCONTEXT_H#include "oglcontext.hpp"#include "ogltexture.hpp"namespace brook { class NVTexture : public OGLTexture { public: NVTexture ( unsigned int inWidth, unsigned int inHeight, GPUContext::TextureFormat inFormat); virtual int nativeFormat() const { return _nativeFormat; } private: int _nativeFormat; }; class NVContext : public OGLContext { public: static NVContext * create(); TextureHandle createTexture2D( unsigned int inWidth, unsigned int inHeight, TextureFormat inFormat); int getShaderFormatRank (const char *name) const; static bool isCompatibleContext (); static bool isVendorContext (); protected: NVContext(); bool supportsFP40; };}#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?