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