Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
GamebabyRockSun_QQ
GRSD3D12Sample
提交
e50ea21e
G
GRSD3D12Sample
项目概览
GamebabyRockSun_QQ
/
GRSD3D12Sample
9 个月 前同步成功
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
1
Wiki
分析
仓库
DevOps
项目成员
Pages
G
GRSD3D12Sample
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
1
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
e50ea21e
编写于
8月 25, 2022
作者:
GamebabyRockSun_QQ
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修正了几个今天提交后的警告信息
上级
f61b4ecb
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
9 deletion
+9
-9
20-ResizeWindowEmpty/20-ResizeWindowEmpty.cpp
20-ResizeWindowEmpty/20-ResizeWindowEmpty.cpp
+2
-2
21-FullscreenEmpty/21-FullscreenEmpty.cpp
21-FullscreenEmpty/21-FullscreenEmpty.cpp
+2
-2
22-MultiInstance-PBR-Sphere/22-MultiInstance-PBR-Sphere.cpp
22-MultiInstance-PBR-Sphere/22-MultiInstance-PBR-Sphere.cpp
+3
-3
7-D3D12MultiAdapter/7-D3D12MultiAdapter.cpp
7-D3D12MultiAdapter/7-D3D12MultiAdapter.cpp
+2
-2
未找到文件。
20-ResizeWindowEmpty/20-ResizeWindowEmpty.cpp
浏览文件 @
e50ea21e
...
...
@@ -671,8 +671,8 @@ void OnSize(UINT width, UINT height, bool minimized)
// 8、更新视口大小和齐次包围盒大小
g_stGPUStatus
.
m_stViewPort
.
TopLeftX
=
0.0
f
;
g_stGPUStatus
.
m_stViewPort
.
TopLeftY
=
0.0
f
;
g_stGPUStatus
.
m_stViewPort
.
Width
=
g_stGPUStatus
.
m_iWndWidth
;
g_stGPUStatus
.
m_stViewPort
.
Height
=
g_stGPUStatus
.
m_iWndHeight
;
g_stGPUStatus
.
m_stViewPort
.
Width
=
(
float
)
g_stGPUStatus
.
m_iWndWidth
;
g_stGPUStatus
.
m_stViewPort
.
Height
=
(
float
)
g_stGPUStatus
.
m_iWndHeight
;
g_stGPUStatus
.
m_stScissorRect
.
left
=
static_cast
<
LONG
>
(
g_stGPUStatus
.
m_stViewPort
.
TopLeftX
);
g_stGPUStatus
.
m_stScissorRect
.
right
=
static_cast
<
LONG
>
(
g_stGPUStatus
.
m_stViewPort
.
TopLeftX
+
g_stGPUStatus
.
m_stViewPort
.
Width
);
...
...
21-FullscreenEmpty/21-FullscreenEmpty.cpp
浏览文件 @
e50ea21e
...
...
@@ -682,8 +682,8 @@ void OnSize(UINT width, UINT height, bool minimized)
// 8、更新视口大小和齐次包围盒大小
g_stGPUStatus
.
m_stViewPort
.
TopLeftX
=
0.0
f
;
g_stGPUStatus
.
m_stViewPort
.
TopLeftY
=
0.0
f
;
g_stGPUStatus
.
m_stViewPort
.
Width
=
g_stGPUStatus
.
m_iWndWidth
;
g_stGPUStatus
.
m_stViewPort
.
Height
=
g_stGPUStatus
.
m_iWndHeight
;
g_stGPUStatus
.
m_stViewPort
.
Width
=
(
float
)
g_stGPUStatus
.
m_iWndWidth
;
g_stGPUStatus
.
m_stViewPort
.
Height
=
(
float
)
g_stGPUStatus
.
m_iWndHeight
;
g_stGPUStatus
.
m_stScissorRect
.
left
=
static_cast
<
LONG
>
(
g_stGPUStatus
.
m_stViewPort
.
TopLeftX
);
g_stGPUStatus
.
m_stScissorRect
.
right
=
static_cast
<
LONG
>
(
g_stGPUStatus
.
m_stViewPort
.
TopLeftX
+
g_stGPUStatus
.
m_stViewPort
.
Width
);
...
...
22-MultiInstance-PBR-Sphere/22-MultiInstance-PBR-Sphere.cpp
浏览文件 @
e50ea21e
...
...
@@ -792,7 +792,7 @@ int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR l
// 填充每实例数据
//创建 Per Instance Data 仅使用Upload隐式堆 iRowCnts行 * iColCnts列个实例
g_stBufferResSesc
.
Width
=
iRowCnts
*
iColCnts
*
sizeof
(
ST_GRS_PER_INSTANCE
);
g_stBufferResSesc
.
Width
=
(
UINT64
)(
iRowCnts
*
iColCnts
*
sizeof
(
ST_GRS_PER_INSTANCE
)
);
GRS_THROW_IF_FAILED
(
pID3D12Device4
->
CreateCommittedResource
(
&
g_stUploadHeapProps
,
D3D12_HEAP_FLAG_NONE
...
...
@@ -1153,8 +1153,8 @@ void OnSize(UINT width, UINT height, bool minimized)
// 8、更新视口大小和齐次包围盒大小
g_stGPUStatus
.
m_stViewPort
.
TopLeftX
=
0.0
f
;
g_stGPUStatus
.
m_stViewPort
.
TopLeftY
=
0.0
f
;
g_stGPUStatus
.
m_stViewPort
.
Width
=
g_stGPUStatus
.
m_iWndWidth
;
g_stGPUStatus
.
m_stViewPort
.
Height
=
g_stGPUStatus
.
m_iWndHeight
;
g_stGPUStatus
.
m_stViewPort
.
Width
=
(
float
)
g_stGPUStatus
.
m_iWndWidth
;
g_stGPUStatus
.
m_stViewPort
.
Height
=
(
float
)
g_stGPUStatus
.
m_iWndHeight
;
g_stGPUStatus
.
m_stScissorRect
.
left
=
static_cast
<
LONG
>
(
g_stGPUStatus
.
m_stViewPort
.
TopLeftX
);
g_stGPUStatus
.
m_stScissorRect
.
right
=
static_cast
<
LONG
>
(
g_stGPUStatus
.
m_stViewPort
.
TopLeftX
+
g_stGPUStatus
.
m_stViewPort
.
Width
);
...
...
7-D3D12MultiAdapter/7-D3D12MultiAdapter.cpp
浏览文件 @
e50ea21e
...
...
@@ -336,7 +336,7 @@ int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR l
RegisterClassEx
(
&
wcex
);
DWORD
dwWndStyle
=
WS_OVERLAPPED
|
WS_SYSMENU
;
RECT
rtWnd
=
{
0
,
0
,
nWndWidth
,
nWndHeight
};
RECT
rtWnd
=
{
0
,
0
,
(
LONG
)
nWndWidth
,
(
LONG
)
nWndHeight
};
AdjustWindowRect
(
&
rtWnd
,
dwWndStyle
,
FALSE
);
// 计算窗口居中的屏幕坐标
...
...
@@ -1645,7 +1645,7 @@ int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR l
stGPUParams
[
nIDGPUMain
].
m_pICmdList
->
ResourceBarrier
(
1
,
&
stRTVStateTransBarrier
);
D3D12_CPU_DESCRIPTOR_HANDLE
rtvHandle
=
stGPUParams
[
nIDGPUMain
].
m_pIDHRTV
->
GetCPUDescriptorHandleForHeapStart
();
rtvHandle
.
ptr
+=
(
nCurrentFrameIndex
*
stGPUParams
[
nIDGPUMain
].
m_nszRTV
);
rtvHandle
.
ptr
+=
(
SIZE_T
)(
nCurrentFrameIndex
*
stGPUParams
[
nIDGPUMain
].
m_nszRTV
);
D3D12_CPU_DESCRIPTOR_HANDLE
stDSVHandle
=
stGPUParams
[
nIDGPUMain
].
m_pIDHDSVTex
->
GetCPUDescriptorHandleForHeapStart
();
stGPUParams
[
nIDGPUMain
].
m_pICmdList
->
OMSetRenderTargets
(
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录