Commit 28060c43 by Jamie Madill Committed by Commit Bot

Vulkan: Enable running SimpleTexture2D.

This completes the work for the simple texture sample. Bug: angleproject:2167 Change-Id: I47c6794fa7cd59e295a98623d9ce8879ea1d3298 Reviewed-on: https://chromium-review.googlesource.com/952566Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
parent a53d0e18
......@@ -20,8 +20,8 @@
class SimpleTexture2DSample : public SampleApplication
{
public:
SimpleTexture2DSample()
: SampleApplication("SimpleTexture2D", 1280, 720)
SimpleTexture2DSample(EGLint displayType)
: SampleApplication("SimpleTexture2D", 1280, 720, 2, 0, displayType)
{
}
......@@ -132,6 +132,13 @@ class SimpleTexture2DSample : public SampleApplication
int main(int argc, char **argv)
{
SimpleTexture2DSample app;
EGLint displayType = EGL_PLATFORM_ANGLE_TYPE_DEFAULT_ANGLE;
if (argc > 1)
{
displayType = GetDisplayTypeFromArg(argv[1]);
}
SimpleTexture2DSample app(displayType);
return app.run();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment