forked from KhronosGroup/SPIRV-Cross
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request KhronosGroup#1589 from KhronosGroup/roll-deps
Roll dependencies.
- Loading branch information
Showing
8 changed files
with
46 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
reference/opt/shaders-msl/asm/comp/image-load-store-short-vector.asm.comp
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
reference/shaders-msl/asm/comp/image-load-store-short-vector.invalid.asm.comp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma clang diagnostic ignored "-Wmissing-prototypes" | ||
|
||
#include <metal_stdlib> | ||
#include <simd/simd.h> | ||
|
||
using namespace metal; | ||
|
||
static inline __attribute__((always_inline)) | ||
void _main(thread const uint3& id, thread texture2d<float, access::read_write> TargetTexture) | ||
{ | ||
float2 loaded = TargetTexture.read(uint2(id.xy)).xy; | ||
float2 storeTemp = loaded + float2(1.0); | ||
TargetTexture.write(storeTemp.xyyy, uint2((id.xy + uint2(1u)))); | ||
} | ||
|
||
kernel void main0(texture2d<float, access::read_write> TargetTexture [[texture(0)]], uint3 gl_WorkGroupID [[threadgroup_position_in_grid]]) | ||
{ | ||
uint3 id = gl_WorkGroupID; | ||
uint3 param = id; | ||
_main(param, TargetTexture); | ||
} | ||
|
File renamed without changes.