笔记
79C0
这个作者很懒,什么都没留下…
展开
-
DirectX渲染出来只显示顶点
运行之后一直只显示顶点,开始以为是像素着色器问题,就直接返回一个固定颜色,不用图片取样,还是只显示所有顶点,后来对照之前的样例才发现这个问题。没有设置基本拓扑,也就是忘记写d3dContext_->IASetPrimitiveTopology(D3D11_PRIMITIVE_TOPOLOGY_TRIANGLELIST);没写这句之前:写了之后正常显示:...原创 2020-02-27 21:46:14 · 226 阅读 · 0 评论 -
Win32画面卡顿,但不是CPU占用率过高
主窗口接收消息不要用:// 主消息循环:while (GetMessage(&msg, nullptr, 0, 0)){ if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) { TranslateMessage(&msg); DispatchMessage(&a...原创 2020-02-27 13:09:12 · 359 阅读 · 0 评论 -
1026 Table Tennis (30分)最后一个测试没过,寻求帮助(已解决)
1026 Table Tennis (30分)A table tennis club has N tables available to the public. The tables are numbered from 1 to N. For any pair of players, if there are some tables open when they arrive, they...原创 2020-01-16 18:06:28 · 465 阅读 · 1 评论