Changeset 243105 in webkit


Ignore:
Timestamp:
Mar 18, 2019 2:30:58 PM (5 years ago)
Author:
mmaxfield@apple.com
Message:

[WHLSL] Hook up the compiler to our WebGPU implementation
https://bugs.webkit.org/show_bug.cgi?id=195509

Unreviewed.

Update after r243091.

Source/WebCore:

  • Modules/webgpu/WHLSL/WHLSLSynthesizeConstructors.cpp:
  • platform/graphics/gpu/cocoa/GPURenderPipelineMetal.mm:

(WebCore::trySetWHLSLFunctionsForPipelineDescriptor):

LayoutTests:

  • webgpu/whlsl.html:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r243102 r243105  
     12019-03-18  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        [WHLSL] Hook up the compiler to our WebGPU implementation
     4        https://bugs.webkit.org/show_bug.cgi?id=195509
     5
     6        Unreviewed.
     7
     8        Update after r243091.
     9
     10        * webgpu/whlsl.html:
     11
    1122019-03-18  Wenson Hsieh  <wenson_hsieh@apple.com>
    213
  • trunk/LayoutTests/webgpu/whlsl.html

    r243091 r243105  
    1717async function start() {
    1818    const adapter = await window.gpu.requestAdapter();
    19     const device = adapter.createDevice();
     19    const device = await adapter.requestDevice();
    2020
    2121    const shaderModule = device.createShaderModule({code: shaderSource, isWHLSL: true});
     
    9494    const swapChain = device.createSwapChain(swapChainDescriptor);
    9595    const outputTexture = swapChain.getCurrentTexture();
    96     const outputTextureView = outputTexture.createDefaultTextureView(); // createDefaultView()
     96    const outputTextureView = outputTexture.createDefaultView(); // createDefaultView()
    9797
    9898    const commandEncoder = device.createCommandEncoder(); // {}
  • trunk/Source/WebCore/ChangeLog

    r243104 r243105  
     12019-03-18  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        [WHLSL] Hook up the compiler to our WebGPU implementation
     4        https://bugs.webkit.org/show_bug.cgi?id=195509
     5
     6        Unreviewed.
     7
     8        Update after r243091.
     9
     10        * Modules/webgpu/WHLSL/WHLSLSynthesizeConstructors.cpp:
     11        * platform/graphics/gpu/cocoa/GPURenderPipelineMetal.mm:
     12        (WebCore::trySetWHLSLFunctionsForPipelineDescriptor):
     13
    1142019-03-18  Chris Dumez  <cdumez@apple.com>
    215
  • trunk/Source/WebCore/Modules/webgpu/WHLSL/WHLSLSynthesizeConstructors.cpp

    r243091 r243105  
    3232#include "WHLSLArrayReferenceType.h"
    3333#include "WHLSLEnumerationDefinition.h"
     34#include "WHLSLInferTypes.h"
    3435#include "WHLSLNativeFunctionDeclaration.h"
    3536#include "WHLSLNativeTypeDeclaration.h"
  • trunk/Source/WebCore/platform/graphics/gpu/cocoa/GPURenderPipelineMetal.mm

    r243091 r243105  
    260260        return false;
    261261
    262     WTFLogAlways("Metal code: %s", result->metalSource.utf8().data());
    263 
    264262    NSError *error = nil;
    265263    auto library = adoptNS([device.platformDevice() newLibraryWithSource:result->metalSource options:nil error:&error]);
Note: See TracChangeset for help on using the changeset viewer.