Skip to content

Commit 3440783

Browse files
committed
Cleaned up IO.
1 parent 50f0d2a commit 3440783

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/vsg/state/ResourceHints.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ void ResourceHints::read(Input& input)
2828

2929
if (input.version_greater_equal(1, 1, 11))
3030
{
31-
input.read("maxSlots.state", maxSlots.state);
32-
input.read("maxSlots.view", maxSlots.view);
31+
input.read("maxSlots", maxSlots.state, maxSlots.view);
3332
}
3433
else
3534
{
@@ -83,8 +82,7 @@ void ResourceHints::write(Output& output) const
8382

8483
if (output.version_greater_equal(1, 1, 11))
8584
{
86-
output.write("maxSlots.state", maxSlots.state);
87-
output.write("maxSlots.view", maxSlots.view);
85+
output.write("maxSlots", maxSlots.state, maxSlots.view);
8886
}
8987
else
9088
{

src/vsg/state/ViewportState.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ void ViewportState::apply(Context& context, VkGraphicsPipelineCreateInfo& pipeli
141141

142142
void ViewportState::record(CommandBuffer& commandBuffer) const
143143
{
144-
// info("ViewportState::record() ", &commandBuffer);
145144
vkCmdSetScissor(commandBuffer, 0, static_cast<uint32_t>(scissors.size()), scissors.data());
146145
vkCmdSetViewport(commandBuffer, 0, static_cast<uint32_t>(viewports.size()), viewports.data());
147146
}

0 commit comments

Comments
 (0)