Skip to content

Commit

Permalink
[add] minor sample cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
begla committed Jul 29, 2024
1 parent 93a07a2 commit 84b198d
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions iolite_c_api/sample_plugins/sample_plugin_vulkan.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@

// Vulkan
#include "vulkan/vulkan.h"
#include "vulkan/vulkan_core.h"

// Dependencies
#define STB_SPRINTF_IMPLEMENTATION
#include "stb_sprintf.h"

// Interfaces we use
//----------------------------------------------------------------------------//
Expand Down Expand Up @@ -82,11 +77,7 @@ IO_API_EXPORT int IO_API_CALL load_plugin(const void* api_manager)
{
VkPhysicalDeviceProperties props;
vkGetPhysicalDeviceProperties(vk_device, &props);

char buffer[1024u];
stbsp_snprintf(buffer, sizeof(buffer), "Vulkan Sample Plugin: %s",
props.deviceName);
io_logging->log_plugin("Sample Vulkan", buffer);
io_logging->log_plugin("Sample Vulkan", props.deviceName);
}
}

Expand Down

0 comments on commit 84b198d

Please sign in to comment.