⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 nvcontext.hpp

📁 用于GPU通用计算的编程语言BrookGPU 0.4
💻 HPP
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -