{
0.0f, // float originX;
0.0f, // float originY;
- m_renderSize, // float width;
- m_renderSize, // float height;
+ (float)m_renderSize, // float width;
+ (float)m_renderSize, // float height;
0.0f, // float minDepth;
1.0f // float maxDepth;
};
{
const PlatformProperties& platformProperties = getPlatformProperties(wsiType);
vector<VkSwapchainCreateInfoKHR> cases;
- const VkSurfaceTransformFlagBitsKHR transform = (capabilities.supportedTransforms & VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR) ? VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR : capabilities.currentTransform;
+ const VkSurfaceTransformFlagBitsKHR defaultTransform = (capabilities.supportedTransforms & VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR) ? VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR : capabilities.currentTransform;
const VkSwapchainCreateInfoKHR baseParameters =
{
VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR,
VK_SHARING_MODE_EXCLUSIVE,
0u,
(const deUint32*)DE_NULL,
- transform,
+ defaultTransform,
VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR,
VK_PRESENT_MODE_FIFO_KHR,
VK_FALSE, // clipped
deUint32 imageNdx,
deUint32 frameNdx) const
{
- const VkImage curImage = m_swapchainImages[imageNdx];
const VkFramebuffer curFramebuffer = **m_framebuffers[imageNdx];
{
{
const int sign = ((side / 2) * -2) + 1;
const int component = side % 2;
- const float t = calculateIntersectionParameter(line, w * sign, component);
+ const float t = calculateIntersectionParameter(line, w * (float)sign, component);
- if (t > 0 && t < 1)
+ if ((t > 0) && (t < 1))
{
- float newCoord = t * line[1][1 - component] + (1 - t) * line[0][1 - component];
+ const float newCoord = t * line[1][1 - component] + (1 - t) * line[0][1 - component];
- if (line[1][component] > w * sign)
+ if (line[1][component] > (w * (float)sign))
{
- line[1 - side / 2][component] = w * sign;
+ line[1 - side / 2][component] = w * (float)sign;
line[1 - side / 2][1 - component] = newCoord;
}
else
{
- line[side / 2][component] = w * sign;
+ line[side / 2][component] = w * (float)sign;
line[side / 2][1 - component] = newCoord;
}
}
deUint32 MutableRenderBufferTest::drawAndSwap (const Library& egl, deUint32 color, bool flush)
{
DE_ASSERT(color < 256);
- m_gl.clearColor(color/255.f, color/255.f, color/255.f, color/255.f);
+ m_gl.clearColor((float)color/255.f, (float)color/255.f, (float)color/255.f, (float)color/255.f);
m_gl.clear(GL_COLOR_BUFFER_BIT);
if (flush)
{