vs2015编程DX使用Effect的详细步骤(整理)
来源:互联网 发布:mysql中union all 编辑:程序博客网 时间:2024/06/05 03:47
vs2015用directx11中的effect11真是用得报警了,各种错误。下面详细配置步骤
1.安装Microsoft DirectX SDK (June 2010)
2.打开X:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Samples\C++\Effects11
3.打开Effects11_2010.sln,提示转换成vs2015的文件吧啦吧啦,全部点是
4.视线放到 解决方案资源管理器 页卡上,找到d3dxglobal.h并打开
5.定位到667行,
static void* __cdecl operator new(size_t s, CDataBlockStore &pAllocator)
{
D3DXASSERT( s <= 0xffffffff );
return pAllocator.Allocate( (UINT)s );
}
static void __cdecl operator delete(void* p, CDataBlockStore &pAllocator)
{
}
改为
void* __cdecl operator new(size_t s, CDataBlockStore &pAllocator);
void __cdecl operator delete(void* p, CDataBlockStore &pAllocator);
7.在最后一行添加
void* __cdecl operator new(size_t s, CDataBlockStore &pAllocator)
{
D3DXASSERT(s <= 0xffffffff);
return pAllocator.Allocate((UINT)s);
}
void __cdecl operator delete(void* p, CDataBlockStore &pAllocator)
{
}
8.保存并重新生成解决方案
9.按需要编译Debug还是什么的奇怪东西
10.复制Effect11.lib到工程下
X:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Samples\C++\Effects11\Debug
参考资料:
https://msdn.microsoft.com/zh-cn/library/mt612856.aspx
http://www.mamicode.com/info-detail-1243363.html
http://blog.csdn.net/pizi0475/article/details/7786249
- vs2015编程DX使用Effect的详细步骤(整理)
- DX11编程(一):DX和Effect的基本配置和属性表配置
- 如何在VS2015创建动态库DLL(详细步骤)
- CentOS使用MySQL的详细步骤,及C API编程
- CentOS使用MySQL的详细步骤,及C API编程
- IOS http网络编程的详细使用步骤
- CentOS使用MySQL的详细步骤,及C API编程
- [dx] 启用dx 和 基本绘制所需的步骤
- dx 工具的使用
- 详细使用TortoiseSVN的步骤
- 使用springMVC的详细步骤
- 使用springMVC的详细步骤
- 使用springMVC的详细步骤
- 使用springMVC的详细步骤
- 使用springMVC的详细步骤
- 使用springMVC的详细步骤
- 使用springMVC的详细步骤
- 使用springMVC的详细步骤
- html 前端技术总结1
- 每个Java初学者都应该搞懂的六个问题
- 三星(note2) 不支持H5的那些功能
- iOS中使用ZipArchive压缩和解压文件
- 快速Android开发系列通信篇之EventBus
- vs2015编程DX使用Effect的详细步骤(整理)
- 编程命名规则(网摘整理):帕斯卡命名法,骆驼命名法(小驼峰式&大驼峰式),匈牙利命名法
- 在Dos下使用MySQL操作数据表
- 单例模式
- [Ubuntu]How to install Google Chrome in Ubuntu
- oralce序列,序列语法格式及使用方式
- Odoo(OpenERP)配置文件openerp-server.conf详解
- HDU 5700 区间交 百度之星题解 round2B (set+vector)
- ListView和RecycleView比较