File tree Expand file tree Collapse file tree 3 files changed +19
-14
lines changed Expand file tree Collapse file tree 3 files changed +19
-14
lines changed Original file line number Diff line number Diff line change 1
- /* This override allows text in table cells to wrap.
2
- Without this override, the descritpions in the
3
- command line options tables are very long and
4
- the table is displayed with a horizontal scroll
5
- bar */
1
+ /* This override allows text in table cells to wrap.*/
2
+
6
3
@media screen and (min-width : 767px ) {
7
4
8
5
.wy-table-responsive table td {
17
14
}
18
15
19
16
table .docutils div .line-block {
20
- margin-left : 0 ;
17
+ margin-left : 0 !important ;
21
18
}
Original file line number Diff line number Diff line change 115
115
# so a file named "default.css" will overwrite the builtin "default.css".
116
116
html_static_path = ['_static' ]
117
117
118
- html_context = {
119
- 'css_files' : [
120
- '_static/theme_overrides.css' , # override wide tables in RTD theme
121
- ],
122
- }
118
+ # If a function setup(app) exists, Sphinx will call this function as a normal
119
+ # extension during application startup. This method of using the overrides css
120
+ # file works better with read the docs (more so than specifying it via the
121
+ # html_context tag)
122
+ def setup (app ):
123
+ app .add_stylesheet ('theme_overrides.css' )
123
124
124
125
# Custom sidebar templates, must be a dictionary that maps document names
125
126
# to template names.
Original file line number Diff line number Diff line change @@ -69,16 +69,23 @@ initialize the DirectX 12 version of GPA:
69
69
70
70
GPAApiManager* GPAApiManager::m_pGpaApiManager = nullptr;
71
71
72
- GPAFunctionTable* pGpaFunctionTable;
72
+ GPAFunctionTable* pGpaFunctionTable = nullptr ;
73
73
74
74
bool InitializeGPA()
75
75
{
76
+ bool retVal = false;
77
+
76
78
if (GPA_STATUS_OK == GPAApiManager::Instance()->LoadApi(GPA_API_DIRECTX_12))
77
79
{
78
80
pGpaFunctionTable = GPAApiManager::Instance()->GetFunctionTable(GPA_API_DIRECTX_12);
81
+
82
+ if (nullptr != pGpaFunctionTable)
83
+ {
84
+ retVal = GPA_STATUS_OK == pGpaFunctionTable->GPA_Initialize(GPA_INITIALIZE_DEFAULT_BIT);
85
+ }
79
86
}
80
87
81
- return GPA_STATUS_OK == pGpaFunctionTable->GPA_Initialize(GPA_INITIALIZE_DEFAULT_BIT) ;
88
+ return retVal ;
82
89
}
83
90
84
91
Registering a Logging Callback
@@ -170,7 +177,7 @@ required type which should be passed to GPA_OpenContext:
170
177
Querying a Context and Counters
171
178
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
172
179
173
- After creating a Context , you can use the returned GPA_ContextId to query
180
+ After creating a context , you can use the returned GPA_ContextId to query
174
181
information about the context and the performance counters exposed by the
175
182
context.
176
183
You can’t perform that action at this time.
0 commit comments